I see this error in the Terminal while building a Rust application (which happens to be about NEAR Protocol, if you're curious):
error[E0463]: can't find crate for core
note: the "wasm32-unknown-unknown" target may not be installed
How can I fix it so that Rust will actually build my NEAR app?
To solve this error, run:
rustup target add wasm32-unknown-unknown
in the terminal, and that should correct the issue.
Note: I'm simply posting here as an answer what the original question asker Dorian Crutcher already wrote within their question. But that suggestion did work for me too.
I had the same problem, its reason is in an out-of-date version of Rust, the solution was to update the Rust to the latest version.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With