Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
WebAssembly not executing/compiling due to incorrect response MIME type. Expected 'application/wasm'. #40029
What version of Go are you using (
You can write your own golang server that can serve your files with a little bit of go:
And then you can run that code with
Is it possible your
What does this program print for you? It should be "application/wasm". If not, check your local MIME files(
@dmitshur, indeed I was expecting the server to automatically recognize and serve as "application/wasm".
Running the mentioned go playground program prints "application/wasm", so there it is working correctly.
A check on
I tried by adding the mime type
@frvannes16, running your example I get the same error in the browser console.