Lua modules problem in HTML5 build (SOLVED)

We use modules same way as described in the documentation.

With the native build everything is OK.

But with HTML5 build we have the promlem:

ERROR:SCRIPT: Gun/gunScript.script:1: module 'Modules.AdvancedMathModule' not found: 
	no file 'Modules.AdvancedMathModule'

What are we doing wrong?

Can you show the line of code where you require the module?

Also, what’s the exact name of the file and any folders?

Can you please remove the semi-colon from the end of the line? While it’s not an error in Lua our regex that detects require usage seems to not like it.

1 Like

Oh… that works!

Many thahks!

2 Likes