Closed pulcheri closed 5 years ago
This is a latent bug in a library that webpack uses, which was recently triggered by updates in wasm-bindgen
. Follow https://github.com/webpack/webpack/pull/8786 for the fix to enter webpack.
In the meantime, you can try hardcoding wasm-bindgen = "=0.2.34"
in your Cargo.toml
.
Thanks for filing an issue!
FWIW I ran into the same issue and hard-coding the wasm-bindgen
version worked. Might be worth mentioning in the copy while this is still an issue?
Thanks for the book btw!
I've still be getting this issue using 0.2.50. When attempting to pin to the above suggested version, errors with other dependencies like the wasm-bindgen-backend appear.
FYI, this works with 0.2.58
Whilst following the instructions in the book everything works fine until I try to serve with
npm run start
Output:
Rust toolchain versions
Node/npm