rustwasm / book

The Rust and WebAssembly Book
https://rustwasm.github.io/docs/book/
MIT License
1.73k stars 208 forks source link

Can't make the first build #207

Open Ebeldev opened 4 years ago

Ebeldev commented 4 years ago

Describe the bug I'm trying to follow the tutorial. When I get to the first build command "wasm-pack build", the complier outputs a error and the project never builds.

To Reproduce Steps to reproduce the behavior:

  1. Followed the instructions on installing all the tools (rust, wasm-pack, npm)
  2. Ran this command "cargo generate --git https://github.com/rustwasm/wasm-pack-template"
  3. cd in the wasm-game-of-life folder
  4. Run this command : "wasm-pack build"
  5. The complier breaks.

Expected behavior The project should have build properly

Screenshots Capture d’écran, le 2020-01-17 à 08 20 26

Additional context I'm on a mac rust version: cargo 1.36.0 (c4fcfb725 2019-05-15) npm version : 6.12.1

clemens-tolboom commented 4 years ago

My build on Mac was doing fine. Note the newer versions esp. bumpalo v3.4.0

wasm-pack build
[INFO]: 🎯  Checking for the Wasm target...
[INFO]: 🌀  Compiling to Wasm...
   Compiling proc-macro2 v1.0.19
   Compiling unicode-xid v0.2.1
   Compiling wasm-bindgen-shared v0.2.67
   Compiling log v0.4.11
   Compiling syn v1.0.39
   Compiling cfg-if v0.1.10
   Compiling bumpalo v3.4.0
   Compiling lazy_static v1.4.0
   Compiling wasm-bindgen v0.2.67
   Compiling quote v1.0.7
   Compiling wasm-bindgen-backend v0.2.67
   Compiling wasm-bindgen-macro-support v0.2.67
   Compiling wasm-bindgen-macro v0.2.67
   Compiling console_error_panic_hook v0.1.6

Guess we can close this