#WASM: linked against different bindgen format

3 messages · Page 1 of 1 (latest)

gleaming coral
#

Why I'm getting this error in response to cargo watch -x "run --target wasm32-unknown-unknown --release":

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.87
     this binary schema version: 0.2.84

I check my wasm-bindgen version and it is

set@SET001:~/projects/bevy_game$ wasm-bindgen --version
wasm-bindgen 0.2.87

the version in cargo.toml is: wasm-bindgen = "0.2.87"
I do cargo clean and rm Cargo.lock to ensure then everything is clean. but then I'm getting exact same error.

#

also, error message contain some hints

You should be able to update the wasm-bindgen dependency with:

    cargo update -p wasm-bindgen

or you can update the binary with

    cargo install -f wasm-bindgen-cli

and none of them works for me *(

gleaming coral
#

WASM: linked against different bindgen format