Skip to content

bug-reproduction/wasm-pack-in-browser

Repository files navigation

wasm-pack fails to load with raw browser import

Reproduction:

wasm-pack build

Then launch a server:

python3 -m http.server 8888

navigate to http://localhost:8888/

open the console and see

Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "application/wasm". Strict MIME type checking is enforced for module scripts per HTML spec.

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE
MIT
LICENSE_MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published