-
-
Notifications
You must be signed in to change notification settings - Fork 918
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
wasm-bindgen version confusion #3411
Comments
Forgot to mention, I changed the dioxus dependency to:
In order to work around #3391 But the output above indicates it is pulling in dioxus-cli-config v0.6.1, which looks wrong. Lets try to fix that: # cargo update -p dioxus-cli-config --precise 0.6.0
Updating crates.io index
error: failed to select a version for the requirement `dioxus-cli-config = "^0.6.1"`
candidate versions found which didn't match: 0.6.0
location searched: crates.io index
required by package `dioxus-desktop v0.6.1`
... which satisfies dependency `dioxus-desktop = "^0.6.0"` (locked to 0.6.1) of package `dioxus v0.6.0`
... which satisfies dependency `dioxus = "=0.6.0"` (locked to 0.6.0) of package `dioxus-fs v0.1.0 (/home/brian/tree/3rdparty/dioxus-fs)` Dependency hell! Dependencies need to be upgraded in exactly the right order. I think something like: # cargo update -p dioxus-fullstack --precise 0.6.0
Updating crates.io index
Downgrading dioxus-fullstack v0.6.1 -> v0.6.0
note: pass `--verbose` to see 12 unchanged dependencies behind latest
# cargo update -p dioxus-mobile --precise 0.6.0
Updating crates.io index
Downgrading dioxus-mobile v0.6.1 -> v0.6.0
note: pass `--verbose` to see 13 unchanged dependencies behind latest
# cargo update -p dioxus-desktop --precise 0.6.0
Updating crates.io index
Downgrading dioxus-desktop v0.6.1 -> v0.6.0
note: pass `--verbose` to see 14 unchanged dependencies behind latest
# cargo update -p dioxus-logger --precise 0.6.0
Updating crates.io index
Downgrading dioxus-logger v0.6.1 -> v0.6.0
note: pass `--verbose` to see 15 unchanged dependencies behind latest
# cargo update -p dioxus-router --precise 0.6.0
Updating crates.io index
Downgrading dioxus-router v0.6.1 -> v0.6.0
note: pass `--verbose` to see 16 unchanged dependencies behind latest
# cargo update -p dioxus-web --precise 0.6.0
Updating crates.io index
Downgrading dioxus-web v0.6.1 -> v0.6.0
note: pass `--verbose` to see 17 unchanged dependencies behind latest
# cargo update -p manganis --precise 0.6.0
Updating crates.io index
Downgrading manganis v0.6.1 -> v0.6.0
note: pass `--verbose` to see 18 unchanged dependencies behind latest
# cargo update -p manganis-macro --precise 0.6.0
Updating crates.io index
Downgrading manganis-macro v0.6.1 -> v0.6.0
note: pass `--verbose` to see 19 unchanged dependencies behind latest
# cargo update -p manganis-core --precise 0.6.0
Updating crates.io index
Downgrading manganis-core v0.6.1 -> v0.6.0
note: pass `--verbose` to see 20 unchanged dependencies behind latest
# cargo update -p dioxus-cli-config --precise 0.6.0
Updating crates.io index
Downgrading dioxus-cli-config v0.6.1 -> v0.6.0
note: pass `--verbose` to see 21 unchanged dependencies behind latest Out of time, not tested yet, but I expect this might work now |
Sorry, missed one, how to deal with this not so obvious. # cargo update -p wasm-bindgen --precise 0.2.97
Updating crates.io index
error: failed to select a version for the requirement `wasm-bindgen = "=0.2.99"`
candidate versions found which didn't match: 0.2.97
location searched: crates.io index
required by package `web-sys v0.3.76`
... which satisfies dependency `web-sys = "^0.3.61"` (locked to 0.3.76) of package `dioxus-fullstack v0.6.0`
... which satisfies dependency `dioxus-fullstack = "^0.6.0"` (locked to 0.6.0) of package `dioxus v0.6.0`
... which satisfies dependency `dioxus = "=0.6.0"` (locked to 0.6.0) of package `dioxus-fs v0.1.0 (/home/brian/tree/3rdparty/dioxus-fs)` |
Is this happening on a Mac? Steps (on MacOS)
|
No, this is Linux. The problem was mentioned here:
|
Problem
After creating new full stack project with dioxus cli 6.1, and attempting to build it, I get the following error:
So according to this I have two options:
I should upgrade wasm-bindgen-cli binaries to version 0.2.99.
This doesn't work. I already have 0.2.99 installed:
The problem is that dioxus cli is directly linked into 0.2.97, and I can't change this at run time.
https://github.com/DioxusLabs/dioxus/blob/v0.6/Cargo.lock#L14886-L14895
Downgrade the project to use version 0.2.97 not 0.2.99.
This also doesn't work,
Originally I thought this was a nixos specific issue, so I reported it there, but on closer inspection it looks like a dioxus bug.
Steps To Reproduce
Steps to reproduce the behavior:
dx serve --platform web
Expected behavior
This operation should work.
Environment:
Questionnaire
The text was updated successfully, but these errors were encountered: