- Notifications
You must be signed in to change notification settings - Fork30
Open
Description
Describe the Bug
Building the code on pageImplementing Conway's Game of Life fails with the below error:
Error: failed to execute`wasm-opt`: exited withexit 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 metadatain your`Cargo.toml`.
Steps to Reproduce
- Follow the tutorial on pageImplementing Conway's Game of Life untilRendering with JavaScript
- Run
wasm-pack build
Additional Context
I managed to make it build by following the error produced and added the following line toCargo.toml
:
[package.metadata.wasm-pack.profile.release]wasm-opt =false