• Building
  • Failed loading file 'HTML5 .wasm' PROBLEM

I want to play the exported game as HTML5 and test it if the game works in the browser but I had a problem when I try to open the .html file of my exported game as HTML5

It's telling me that I don't have a .wasm file but I do have the file in the folder together with the rest of the file of the same directory

What did I do wrong with the export? Is it the engine itself, the browser, did I miss something, or made a mistake? I want to know the solution of the problem.

Have you tried exporting without spaces in filenames? I doubt it's that but you never know.

What does your browsers console say? Also, just in case, try disabling adblock and/or any script blockers for a moment.

@Megalomaniak said: Have you tried exporting without spaces in filenames? I doubt it's that but you never know.

What does your browsers console say? Also, just in case, try disabling adblock and/or any script blockers for a moment.

I set them close together named "2DPlatfoermer.html" and I turned off adblock and I still get the same error as before. Here is my browser console with 10 errors: I hope you can tell me more about the error and many thanks.

a year later
11 days later

Hello, I get this message on iPhone when trying the game tutorial exported in HTML5.

undefined is not an object (evaluating 'GLctx.getParameter')

I tried with safari and Firefox.

@Frederic said: Hello, I get this message on iPhone when trying the game tutorial exported in HTML5.

undefined is not an object (evaluating 'GLctx.getParameter')

I tried with safari and Firefox.

From what I can gather, it seems that there a few issues with Godot's WebGL export and iOS browsers, and one of them is likely causing the issue here. That said, I have very limited experience with Godot's HTML exports, so maybe it is just a setting or something. I remember coming across a post somewhere that mentioned that the texture import options can sometimes cause issues for some devices.

Unfortunately, I was not able to get any projects to run on HTML5 iOS. I got the same error.