Dioxus: Difference between revisions

m Fix cargo log message
m Clarify that we're downgrading the version
Line 12: Line 12:
</syntaxhighlight>There are two solutions to solving this:
</syntaxhighlight>There are two solutions to solving this:


# Pin ''wasm-bindgen'' to the version the ''dioxus-cli'' expects.
# Downgrade ''wasm-bindgen'' to the version the ''dioxus-cli'' expects.
# Update ''dioxus-cli'' to use a newer lock file.
# Update ''dioxus-cli'' to use a newer lock file.


===== Pinning ''wasm-bindgen'' =====
===== Downgrading ''wasm-bindgen'' =====
Within your ''Cargo.toml'' file, force ''wasm-bindgen'' to use the expected version.<syntaxhighlight lang="toml">
Within your ''Cargo.toml'' file, force ''wasm-bindgen'' to use the expected version.<syntaxhighlight lang="toml">
[dependencies]
[dependencies]