failed to build: no such subcommand: wasi
#522
-
When running eyalkeren@eyals-MacBook-Pro wing % npm run build
> build
> nx run-many --target=build --all=true
✔ nx run wing-language-server:build-native [existing outputs match the cache, left as is]
✔ nx run wing-api-checker:build [existing outputs match the cache, left as is]
✖ nx run wingc:build-wasm
error: no such subcommand: `wasi`
Did you mean `add`?
View all installed commands with `cargo --list`
> NX ERROR: Something went wrong in run-commands - Command failed: cargo wasi build
Pass --verbose to see the stacktrace.
✔ nx run vscode-wing:copy (173ms)
✔ nx run vscode-wing:build (10s)
✔ nx run wingsdk:build (53s)
———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
> NX Ran target build for 5 projects and 5 task(s) they depend on (53s)
✔ 5/6 succeeded [2 read from cache]
✖ 1/6 targets failed, including the following:
- nx run wingc:build-wasm Notice that I don't have wasi in Also noticed that we have [env]
CC_wasm32_wasi = "/opt/wasi-sdk/bin/clang"
AR_wasm32_wasi = "/opt/wasi-sdk/bin/ar" While I don't have |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 7 replies
-
Works for me. Make sure you've |
Beta Was this translation helpful? Give feedback.
-
Where are you running |
Beta Was this translation helpful? Give feedback.
-
Added information to description |
Beta Was this translation helpful? Give feedback.
-
Looks like I have the |
Beta Was this translation helpful? Give feedback.
-
Ok, so perhaps |
Beta Was this translation helpful? Give feedback.
-
Yeah it looks like the instructions for building the full stack is incomplete now. The readme used to mention that you need to run this script https://github.com/winglang/wing/blob/main/scripts/setup_wasi.sh
|
Beta Was this translation helpful? Give feedback.
-
@MarkMcCulloh any way to automatically install wasi as part of |
Beta Was this translation helpful? Give feedback.
Yeah it looks like the instructions for building the full stack is incomplete now. The readme used to mention that you need to run this script https://github.com/winglang/wing/blob/main/scripts/setup_wasi.sh
sudo bash scripts/setup_wasi.sh