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

Can't load via CDN #1

Open
joex92 opened this issue Aug 30, 2021 · 0 comments
Open

Can't load via CDN #1

joex92 opened this issue Aug 30, 2021 · 0 comments

Comments

@joex92
Copy link

joex92 commented Aug 30, 2021

Hi, I'm trying to load wasm-noise.js this way:

    <script type="module" src="../node_modules/wasm-noise/wasm_noise.js"></script>

and I just get this error:

wasm_noise_bg.wasm:1
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.

does this mean that it can only be loaded via node.js?

@joex92 joex92 changed the title Can't load Can't load via CDN Aug 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant