-
Notifications
You must be signed in to change notification settings - Fork 84
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 failed to build : version mismatch #169
Comments
Try setting |
I followed the procedure, the error persists after |
Here is my current manifest [package]
name = "authweb"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
perseus = { version = "0.4.0-beta.5", features = ["hydrate"] }
sycamore = "=0.8.0-beta.7"
serde = { version = "1", features = ["derive"] }
serde_json = "1.0.81"
lazy_static = "1.4.0"
derive_more = "0.99.17"
futures = "0.3.21"
chrono = "0.4.19"
walkdir = "2.3.2"
dotenv = "0.15.0"
config = "0.13.1"
web-sys = { version = "0.3", features = [ "Storage" ] }
wasm-bindgen = "0.2.82"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
tokio = { version = "1", features = [ "macros", "rt", "rt-multi-thread" ] }
perseus-actix-web = { version = "=0.4.0-beta.5", features = [ "dflt-server" ] }
reqwest = "0.11"
[target.'cfg(target_arch = "wasm32")'.dependencies]
# web-sys = { version = "0.3", features = [ "Storage" ] }
# wasm-bindgen = "0.2.82"
reqwasm = "0.4"
rexie = "0.4.2" |
What does |
I'm using |
|
I'll update the docs to reflect this requirement. Unfortunately I don't see any way of getting around pinning the version explicitly in |
The way trunk does this, and which seems to work pretty well, is to just get the wasm-bindgen version from the Cargo.toml and automatically install the right wasm-bindgen version. Might be worth looking at their code and doing something similar. |
Yes, that's on my to-do list! I wanted to get a functional system for installing the tools in the first place out, and then that's very much on the roadmap. |
Thanks, |
if I understand, while wasm-bindgen version is in manifest, I still have to execute |
No no, you only have to do this once. Behind the scenes, Perseus installs things like |
ok, thanks |
This should prevent future inconveniences with updated to tools like `wasm-bindgen`. Addresses reccomendations from #169.
I've now built in support for automatically detecting the versions of tools from |
Thanks a lot for the great works. |
This issue is reporting a bug in the code of Perseus. Details of the scope will be available in issue labels.
The author described their issue as follows:
The steps to reproduce this issue are as follows:
The details of the log report is as follow
A minimum reproducible example is available at <>.
Tribble internal data
dHJpYmJsZS1yZXBvcnRlZCxDLWJ1ZyxBLWNsaQ==
The text was updated successfully, but these errors were encountered: