Skip to content

Error for missing wasm32-unknown-unknown on non-rustup environments can be improved #579

Closed
@gotcha

Description

@gotcha

🐛 Bug description

As a newbie I am following the tutorial at https://rustwasm.github.io/book/game-of-life/hello-world.html and get errors

🤔 Expected Behavior

When building the project with wasm-pack build I expect no errors.

👟 Steps to reproduce

$ cargo generate --git https://github.com/rustwasm/wasm-pack-template

then type wasm-game-of-life

$ cd wasm-game-of-life
$ wasm-pack build
[INFO]: 🎯  Checking for the Wasm target...
Error: wasm32-unknown-unknown target not found!

🌍 Your environment

Include the relevant details of your environment.
wasm-pack version: 0.7.0
rustc version: 1.31.0
MacOS Sierra

Metadata

Metadata

Assignees

Labels

PR attachedthere's a PR open for this issuebugSomething isn't workinguser report

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions