Closed Mousaka closed 10 months ago
I think the problem is that you didn't install the wasm32-unknown-unknown toolchain, as is said on the error:
'No available targets are compatible with triple "wasm32-unknown-unknown"'
If you are using rustup, you can install it with this command:
$ rustup target add wasm32-unknown-unknown
This is needed to be able to compile Rust to Wasm.
Thank you for answering @bakaq !
Unfortunately I did that already but I forgot to mention it. It's the only concrete thing I found while googling but it's still not working.
$ rustup target list | grep wasm32-unknown-unknown
wasm32-unknown-unknown (installed)
~Let me know if you know anything I could try.~
EDIT: Found this guide that includes some special steps for MacOS and by following them it worked! https://learn.sapio-lang.org/ch01-01-installation.html#local-quickstart
It might be something with Apple's own Clang version that is not working properly (someone thought so here https://github.com/sapio-lang/sapio/issues/161#issuecomment-999425210) but I'm not sure.
Problem solved by installing wasm-pack by following these special instructions for macOS from https://learn.sapio-lang.org/ch01-01-installation.html#local-quickstart
Problem
I'm following the readme on how to build this project with web assembly but I've been stuck on an error for a while. I'm suspecting it might have to do with the fact that I'm on an Apple M1 processor but I'm not sure. I'm very unfamiliar with these tools and can't really figure out how to fix the error. This is my output when trying to build
Questions
Cheers!