Site name: astonishing-muffin-30b635.netlify.app
I am attempting to build an app that requires building first a rust WASM portion using wasm-pack, and then a vue webapp.
What is the normal process to do something like this? In a normal CLI it woud look something like:
cargo install wasm-pack
yarn wasm
yarn build
Logs:
7:41:51 PM: $ rustup default stable & cargo install wasm-pack & yarn wasm & yarn build
7:41:51 PM: info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
7:41:51 PM: error: rustup could not choose a version of cargo to run, because one wasn't specified explicitly, and no default is configured.
help: run 'rustup default stable' to download the latest stable release of Rust and set it as your default toolchain.
7:41:51 PM: info: latest update on 2025-12-11, rust version 1.92.0 (ded5c06cf 2025-12-08)
7:41:51 PM: info: downloading component 'cargo'
7:41:51 PM: yarn run v1.22.22
7:41:51 PM: warning package.json: No license field
7:41:51 PM: $ vite build
7:41:51 PM: yarn run v1.22.22
7:41:51 PM: warning package.json: No license field
7:41:51 PM: $ wasm-pack build ./key_bnc_wasm --target web
7:41:51 PM: /bin/sh: 1: wasm-pack: not found
7:41:51 PM: error Command failed with exit code 127. (https://ntl.fyi/exit-code-127)
7:41:51 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
7:41:51 PM: info: downloading component 'clippy'
7:41:51 PM: info: downloading component 'rust-docs'
7:41:51 PM: info: downloading component 'rust-std'
7:41:51 PM: info: downloading component 'rustc'
7:41:52 PM: vite v2.6.10 building for production...
7:41:52 PM: Error: Can't find key_bnc_wasm/pkg, run wasm-pack build ./key_bnc_wasm --target web first
✓ 0 modules transformed.