Closed laiboonh closed 5 years ago
+1 Encountered same problem just now. Tried running the "minimal" example with cargo run
, got the exact same error output.
What looks like what happened here is that you are trying to build with the stable-x86_64-apple-darwin
target and it can't find references to emscripten because they don't exist in that target. Specifying --target wasm32-unknown-unknown
might fix your problem (assuming you want to build a wasm file).
Alternatively, as a quick fix, you could also try using cargo web start
(which defaults to wasm32-unknown-unknown
target). That build method is known to work reliably.
Thanks @hgzimmerman! Feel free to re-open if the issue persists with @hgzimmerman's suggestion
I am using yew 0.8.0. I was previously using 0.7.0 happily but failed to compile after doing a rustup update. Not sure if anyone else have similar experience.
Error log