I am attempting to implement a custom pallet, but I keep running into this compile error:
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/jackson/.cargo/registry/src/github.com-1ecc6299db9ec823/getrandom-0.2.7/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"); | |________________________________________________________________________^ error[E0433]: failed to resolve: use of undeclared crate or module `imp` --> /Users/jackson/.cargo/registry/src/github.com-1ecc6299db9ec823/getrandom-0.2.7/src/lib.rs:262:5 | 262 | imp::getrandom_inner(dest) | ^^^ use of undeclared crate or module `imp`
I have found a few other posts related to this but I haven't found an answer with a connection to the pallets. If I omit the custom pallet, then everything builds fine. Has anyone seen this issue before?