Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error[E0463]: can't find crate for `core` | = note: the `wasm32-unknown-unknown` target may not be installed [NEAR Protocol]

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?

like image 885
Dorian Crutcher Avatar asked Feb 18 '21 01:02

Dorian Crutcher


Video Answer


2 Answers

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.

like image 152
Ryan Avatar answered Oct 01 '22 04:10

Ryan


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.

like image 22
ilyar Avatar answered Oct 01 '22 03:10

ilyar