ianjsikes / rust-wasm-webpack-tutorial

Finished example project for my guide on setting up a Webpack project with Rust and WebAssembly
https://medium.com/@ianjsikes/get-started-with-rust-webassembly-and-webpack-58d28e219635
MIT License
121 stars 14 forks source link

Uncaught TypeError: n(...).initialize is not a function #7

Open manuel-rubio opened 5 years ago

manuel-rubio commented 5 years ago

I got this error trying to load the webpage. How can I solve it?

Uncaught TypeError: n(...).initialize is not a function (bundle.js:1)
jcppman commented 5 years ago

this is related to https://github.com/koute/cargo-web/issues/131

If you check your console, you will find that it looks for the .wasm from the root folder instead of inside /build