antelle / argon2-browser

Argon2 library compiled for browser runtime
https://antelle.net/argon2-browser
MIT License
363 stars 78 forks source link

Module parse failed: magic header not detected #57

Closed dwebfan closed 3 years ago

dwebfan commented 3 years ago

When I try the example code with simple react-create-app, I got this failure. Seems like wasm file is loaded, but map with wrong loader.

./node_modules/argon2-browser/dist/argon2.wasm
Module parse failed: magic header not detected
File was processed with these loaders:
 * ./node_modules/file-loader/dist/cjs.js
You may need an additional loader to handle the result of these loaders.
Error: magic header not detected

I've tried webpack.config.js, but still same failure. Can you please help with it?

dwebfan commented 3 years ago

Close since it is discussed at https://github.com/antelle/argon2-browser/issues/38 also.