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

Dioxus CLI wasm-bindgen version mismatch #1101

Closed
3 tasks
CrimsonPolar opened this issue Jun 18, 2023 · 1 comment
Closed
3 tasks

Dioxus CLI wasm-bindgen version mismatch #1101

CrimsonPolar opened this issue Jun 18, 2023 · 1 comment

Comments

@CrimsonPolar
Copy link

Problem

The Dioxus CLI uses wasm-bindgen version 0.2.86 but dioxus_web now requires version 0.2.87. Brand new projects created from the web template fail to run.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Create a new project dioxus web project from the dioxus template
  2. (Optional) Upgrade dependencies to latest versions in Cargo.toml
  3. Run dioxus serve
  4. cargo update -p wasm-bindgen --precise 0.2.86 fails because web-sys requires 0.2.87 or higher. cargo install -f wasm-bindgen-cli --version 0.2.87 succeeds, but does not resolve the issue.

Expected behavior

A web server will open with the app running.

Screenshots

If applicable, add screenshots to help explain your problem.

Environment:

  • Dioxus version: 0.32 (or 0.3)
  • Rust version: 1.70
  • OS info: MacOS
  • App platform: web

Questionnaire

  • I'm interested in fixing this myself but don't know where to start
  • I would like to fix and I have a solution
  • I don't have time to fix this right now, but maybe later
@DogeDark
Copy link
Member

Whenever this happens, download the latest version of the CLI with cargo install --git https://github.com/DioxusLabs/cli

It's set to use the latest minor version of 0.2. It's not the ideal solution, and eventually, dioxus-web and the cli will be locked onto a version, but it works for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants