You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The project compiles, but when I run cargo leptos watch I get this error:
Error: at `/home/pattmayne/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-leptos-0.2.22/src/compile/front.rs:51:30`
Caused by:
0: at `/home/pattmayne/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-leptos-0.2.22/src/compile/front.rs:126:10`
1:
it looks like the Rust project used to create this Wasm file was linked against
version of wasm-bindgen that uses a different bindgen format than this binary:
rust Wasm file schema version: 0.2.95
this binary schema version: 0.2.96
Currently the bindgen format is unstable enough that these two schema versions
must exactly match. You can accomplish this by either updating this binary or
the wasm-bindgen dependency in the Rust project.
You should be able to update the wasm-bindgen dependency with:
cargo update -p wasm-bindgen --precise 0.2.96
don't forget to recompile your Wasm file! Alternatively, you can update the
binary with:
cargo install -f wasm-bindgen-cli --version 0.2.95
if this warning fails to go away though and you're not sure what to do feel free
to open an issue at https://github.com/rustwasm/wasm-bindgen/issues!
This exact error occurs whether I install wasm-bindgen-cli --version 0.2.95 or wasm-bindgen-cli --version 0.2.96
The only way I can get it to run is if I install 0.2.96 and then change cargo.lock from wasm-bindgen = "=0.2.95"
to wasm-bindgen = "=0.2.96"
The text was updated successfully, but these errors were encountered:
Unfortunately this error will keep happening every time someone uses a different (newer or older) version of cargo leptos. The closest upstream issue for a permanent solution is leptos-rs/cargo-leptos#399
The project compiles, but when I run
cargo leptos watch
I get this error:This exact error occurs whether I install
wasm-bindgen-cli --version 0.2.95
orwasm-bindgen-cli --version 0.2.96
The only way I can get it to run is if I install
0.2.96
and then changecargo.lock
fromwasm-bindgen = "=0.2.95"
to
wasm-bindgen = "=0.2.96"
The text was updated successfully, but these errors were encountered: