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

wasm-bindgen version conflict... #176

Closed
sobamemil opened this issue Oct 14, 2024 · 7 comments · Fixed by #185
Closed

wasm-bindgen version conflict... #176

sobamemil opened this issue Oct 14, 2024 · 7 comments · Fixed by #185

Comments

@sobamemil
Copy link

Does it not work with the latest wasm-bindgen (0.2.95) ??

cargo metadata exited with an error: Updating crates.io index
error: failed to select a version for wasm-bindgen.
... required by package leptos-use v0.13.5
... which satisfies dependency leptos-use = "^0.13.5" of package ...
versions that meet the requirements =0.2.93 are: 0.2.93

@maccesch
Copy link
Contributor

Are you using cargo-leptos?

@sobamemil
Copy link
Author

Yes.

@maccesch
Copy link
Contributor

In this case you're stuck at version 0.2.93 for now. Do you absolutely need the latest version?

@duncanawoods
Copy link

I see there is a pull request, is something blocking it getting merged in?

leptos-rs/cargo-leptos#372

My only problem is the version conflict but it makes me nervous because it affects everything in a workspace. web-sys and js-sys also need to be kept at the older version.

@maccesch
Copy link
Contributor

This is an unfortunate reality at the moment with the whole web-sys ecosystem. It's still very unstable and has sometimes breaking changes even on patch version increases so it's necessary to pin the versions down.

It's not so bad though because this is "just" a binding for the actual browser JavaScript APIs which are what they are in any case.

I'll release an updated version as soon as cargo-leptos updates.

@Nutomic
Copy link

Nutomic commented Oct 29, 2024

In my case the problem was fixed simply by deleting Cargo.lock and running cargo check again.

@jheuel
Copy link
Contributor

jheuel commented Nov 5, 2024

Leptos unpinned wasm-bindgen and is using version 0.2.95 since leptos-0.7.0-rc1. See leptos-rs/leptos#3186.

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

Successfully merging a pull request may close this issue.

5 participants