Published game doesn't work need help

The game now works when it’s launched but it does not work when I published it. I made this project for a school requirement.

This is how it looks like when published:

When launched:
https://launch.playcanvas.com/1255686?debug=true

You have an error in your code that stops the rest of the code from working:

The same error is in the launch tab but it still ‘works’ because all the code are still in separate files. The build process takes all the code and converts it to a single file so a single error will stop all the code from working.

1 Like