HTML5 Bundle not loading

Running my app through Defold’s HTML5 build works. However, when I export it as a bundle and try to open index.html, it gets stuck on this screen:

Looks like I’m getting 3 errors, shown here:

An exception is thrown here:

I’m not sure what’s causing this. Strange how I can run it through the Editor, but not as a bundle. I’ve tried other browsers with the same result. I’ve also tried updating my drivers and browser, but same result.

How do you run your bundle?
It needs a file server.

E.g using

python -m SimpleHTTPServer

2 Likes

You cannot open the .html file directly and run it due to browser security features. Like @Mathias_Westerdahl says you need to serve it from a file server.

1 Like

Does GitHub Pages count as a file hosting server? I tried using that but I get the same result.

Yes it does. Put all of the files in there and it should just work. Remember that there is a slight delay between pushing your files to GitHub Pages and the files actually being available.

2 Likes