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
$ harwood % cargo install cargo-leptos
Updating crates.io index
Ignored package `cargo-leptos v0.2.21` is already installed, use --force to override
$ harwood signup-ssr-axum % cargo leptos new --git leptos-rs/start-axum
(nightly)
$ harwood signup-ssr-axum % rustup target add wasm32-unknown-unknown
info: component 'rust-std'for target 'wasm32-unknown-unknown' is up to date
$ harwood signup-ssr-axum % cargo leptos watch
Compiling proc-macro2 v1.0.89
Compiling unicode-ident v1.0.13
Compiling serde v1.0.214
....
Error: at `/Users/harwood/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-leptos-0.2.21/src/compile/front.rs:51:30`
Caused by:
0: at `/Users/harwood/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-leptos-0.2.21/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.93
this binary schema version: 0.2.95
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.95
don't forget to recompile your Wasm file! Alternatively, you can update the binary with: cargo install -f wasm-bindgen-cli --version 0.2.93 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!
The text was updated successfully, but these errors were encountered:
Doing tutorial on https://book.leptos.dev/ssr/21_cargo_leptos.html
Tried both actix and axum templates both give same error:
$harwood % rustc --version rustc 1.84.0-nightly (fbab78289 2024-11-04)
$ harwood % cargo install cargo-leptos Updating crates.io index Ignored package `cargo-leptos v0.2.21` is already installed, use --force to override
The text was updated successfully, but these errors were encountered: