Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial fails to build when wasm-opt is enabled #59

Open
onatm opened this issue Oct 29, 2020 · 1 comment
Open

Tutorial fails to build when wasm-opt is enabled #59

onatm opened this issue Oct 29, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@onatm
Copy link

onatm commented Oct 29, 2020

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

  1. Follow the tutorial on page Implementing Conway's Game of Life until Rendering with JavaScript
  2. 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
@onatm onatm added the bug Something isn't working label Oct 29, 2020
@onatm
Copy link
Author

onatm commented Oct 29, 2020

It seems I opened this issue in the wrong repo, sorry about that. Shall I close this and re-open in docs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant