I went through the tutorial but when I try and explore on my own and target WebAssembly I get an error specifying Wasm as my target. What are the additional steps we need to do in order to target Wasm?
If you are using basic-cli, it does not support wasm because it contains functions to handle dirs and files etc.
Some platforms that do support wasm:
https://github.com/roc-lang/roc/blob/main/examples/platform-switching/rocLovesWebAssembly.roc
https://github.com/lukewilliamboswell/roc-wasm4
Last updated: Jul 06 2025 at 12:14 UTC