Editor 2 - HTML5 build (non bundle) - not loading (SOLVED)

When I run Project > Build HTML5, a browser window opens to “http://localhost:[port]/html5/index.html” but the site never loads. I have tried with my own game as well as the runner example game from the github defold/defold-examples.

I’m using editor v1.2.122 on a mac 10.12.6, tested on chrome, firefox, and safari. I have successfully run the html5 bundle both release and non release.

Is this a known issue?

Edit: it works on latest v1 editor

1 Like

I’ve seen this in the past but nowadays it always works for me. Have you restarted your laptop and/or browser?

Yes I just restarted and the problem still exists.
Did you do anything else to resolve this?

Hmm, no. @mats.gisselson?

I have the same bug: after build opens http://localhost:56412/html5/index.html and just a white screen.

Perhaps a software firewall is preventing the browser from connecting to the web server that the editor sets up?

I have not installed anything to my mac during the last month.
This problem started after one of last editor’s updates.

I am also unable to get the HTML5 to build, even using the bundle -> html5 option! It just gets stuck on the blank screen!

1 Like

Bundling HTML5, starting a file server and then accessing http://localhost:8000/index.html works for me.

A simple way to start a file server to serve your html5 build:

$ cd ~/my_project_bundles/js-web/myproject/
$ python -m SimpleHTTPServer

EDIT: And to clarify, I too get the “Waiting for localhost” problem when choosing “Build HTML5” from Editor 2, which then just shows a blank page

EDIT2: It works in Editor 1

4 Likes

@Mathias_Westerdahl I can get the html bundle running this way too, I also use the python simple http server. The issue is with the Build HTML5 option which the editor hosts in it’s own local server, I assume. That’s why this issue is not blocking me. But quick build is more convenient.

I have no VPN or software firewall, and my wifi router has no special settings enabled.

1 Like

A fix for this issue was just merged. Thanks for reporting!

8 Likes