Open Horusiath opened 1 year ago
Error: wasm32-unknown-unknown target not found in sysroot: "/usr/local/Cellar/rust/1.72.0_2"
Used rustc from the following path: "/usr/local/bin/rustc"
can you try uninstalling rust from homebrew? brew uninstall rust
Eventually I uninstalled everything (using brew uninstall rust
and rustup self uninstall
) and reinstalled rustup again to solve this issue.
For me brew uninstall rust
was enough.
🐛 Bug description
After running
rustup update
, callingwasm-pack build --target nodejs
over the project it worked so far, no longer works. The error is as follows:🌍 Your environment
OS: MacOS wasm-pack version: 0.12.1 rustup show:
Issue remains regardless of me using nightly or stable toolchain version. Other Rust projects (not using wasm-pack) can be compiled via cargo without issues.