Open
Description
Describe the Bug
Building the code on page Implementing Conway's Game of Life fails with the below error:
Error: failed to execute `wasm-opt`: exited with exit code: 1
full command: "/Users/onat.mercan/Library/Caches/.wasm-pack/wasm-opt-a528729925722b63/wasm-opt" "/Users/onat.mercan/dev/wasm-game-of-life/pkg/wasm_game_of_life_bg.wasm" "-o" "/Users/onat.mercan/dev/wasm-game-of-life/pkg/wasm_game_of_life_bg.wasm-opt.wasm" "-O"
To disable `wasm-opt`, add `wasm-opt = false` to your package metadata in your `Cargo.toml`.
Steps to Reproduce
- Follow the tutorial on page Implementing Conway's Game of Life until Rendering with JavaScript
- Run
wasm-pack build
Additional Context
I managed to make it build by following the error produced and added the following line to Cargo.toml
:
[package.metadata.wasm-pack.profile.release]
wasm-opt = false