Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serious error loading Ruffle: TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'. #497

Closed
lordwars opened this issue Apr 12, 2020 · 3 comments
Labels
A-web Area: Web & Extensions

Comments

@lordwars
Copy link

When I run the script (web-demo) in my website I got this error:
Serious error loading Ruffle: TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.
in my Chrome Console, how can I fix it? (I have been tried to change my embed type to wasm, without success)

@mdonoughe
Copy link

What are you using to host the wasm files? The server needs to send the correct mime type in the Content-Type header: https://rustwasm.github.io/book/reference/deploying-to-production.html

@mdonoughe
Copy link

See also #400

@Herschel Herschel added the A-web Area: Web & Extensions label Apr 13, 2020
@Herschel
Copy link
Member

Closing in favor of #400; you need to configure your web server to serve .wasm files with "application/wasm" MIME type. The issue provides info on how to configure Apache to do this, but the method will be different for other web servers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-web Area: Web & Extensions
Projects
None yet
Development

No branches or pull requests

3 participants