[SOLVED] Loading error. When I load the build zip file, it doesn't work

When I load the build zip file, it doesn’t work
Error while loading scene JSON 1331975.json: Cannot set properties of null (setting ‘onloadedmetadata’)
TypeError: Cannot set properties of null (setting ‘onloadedmetadata’)
at i.Ui.initialize (__game-scripts.js:1:7342)
at e.i._scriptMethod (playcanvas-stable.min.js:6:1073978)
at e.i._onInitialize (playcanvas-stable.min.js:6:1074158)
at e.i._callComponentMethod (playcanvas-stable.min.js:6:1082178)
at e.i._onInitialize (playcanvas-stable.min.js:6:1082304)
at e.fire (playcanvas-stable.min.js:6:11866)
at i.n.start (playcanvas-stable.min.js:6:1178010)
at start.js:206:29
at playcanvas-stable.min.js:6:1164286
at i.n._preloadScripts (playcanvas-stable.min.js:6:1175018)

Hi @trannhatminh and welcome,

Have you changed the downloaded contents in any way? Are you running this on a server(double clicking index.html won’t work)?

That is odd. Can you share the build.zip for people to take a look at please?

Thank you. I run it successfully with xampp

1 Like