The error described below is produced when attempting to compile the node upgraded to v3. The Cargo.toml files indeed specify the js feature; the issue occurs when compiling packages within Cargo.lock, which include the getrandom package. As getrandom is the direct dependency of those packages, I am not sure how to specify js feature for them as well. Please let me know what can be done to resolve this issue.
Compiling getrandom v0.2.6
error: the wasm32-unknown-unknown target is not supported by default, you may need to enable the "js" feature. For more information see: https://docs.rs/getrandom/#webassembly-support
--> /Users/raid/.cargo/registry/src/github.com-1ecc6299db9ec823/getrandom-0.2.6/src/lib.rs:235:9
|
235 | / compile_error!("the wasm32-unknown-unknown target is not supported by
236 | | default, you may need to enable the "js" feature.
237 | | For more information see:
238 | | https://docs.rs/getrandom/#webassembly-support");
| |________________________________________________________________________^