0 votes

Hello,
Recently, I did a Godot project, with the intention of exporting it to html5.
When I export it, everything goes well and the program does not inform me of any errors, but when I have already exported it, and I run it in my browser (Mozilla Firefox) an image of loading comes out, and in some according to the following error message: "Failed loading file 'web.wasm'".
Could someone tell me what I should do to fix this problem?
Thanks.

in Engine by (352 points)

1 Answer

+1 vote
Best answer

Are you just opening the HTML file with Firefox? That won't work, you need to run a HTTP Server in your export directory and then navigate there with your browser. Browsers stopped supporting just opening files a while ago.
If you have python3 installed you can run python -m http.server in your export directory.
There's also the http-server package for nodejs if you happen to have that installed.

by (927 points)
selected by

Thanks,
but how I can install and run a server in such directory?

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.