{"record":{"id":"18b7e33ac5bcec9c","repo":"DioxusLabs/dioxus","slug":"incorrect-wasm-bindgen-cli-version-project-requir","errorCode":null,"errorMessage":"Incorrect wasm-bindgen-cli version: project requires version {} but version {} is installed","messagePattern":"Incorrect wasm-bindgen-cli version: project requires version (.+?) but version (.+?) is installed","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/cli/src/wasm_bindgen.rs","lineNumber":366,"sourceCode":"    async fn verify_local_install(&self) -> anyhow::Result<()> {\n        tracing::trace!(\n            \"Verifying wasm-bindgen-cli@{} is installed in the path\",\n            self.version\n        );\n\n        let binary = self.get_binary_path()?;\n        let output = Command::new(binary)\n            .args([\"--version\"])\n            .output()\n            .await\n            .context(\"Failed to check wasm-bindgen-cli version\")?;\n\n        let stdout = String::from_utf8(output.stdout)\n            .context(\"Failed to extract wasm-bindgen-cli output\")?;\n\n        let installed_version = stdout.trim_start_matches(\"wasm-bindgen\").trim();\n        if installed_version != self.version {\n            return Err(anyhow!(\n                \"Incorrect wasm-bindgen-cli version: project requires version {} but version {} is installed\",\n                self.version,\n                installed_version,\n            ));\n        }\n\n        Ok(())\n    }\n\n    async fn verify_managed_install(&self) -> anyhow::Result<()> {\n        tracing::trace!(\n            \"Verifying wasm-bindgen-cli@{} is installed in the tool directory\",\n            self.version\n        );\n\n        let binary_name = self.installed_bin_name();\n        let path = self.install_dir()?.join(binary_name);\n","sourceCodeStart":348,"sourceCodeEnd":384,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/cli/src/wasm_bindgen.rs#L348-L384","documentation":"Version check in WasmBindgen::verify_local_install: the wasm-bindgen binary found on PATH reports an --version different from the version the project requires. The faulting input is the mismatched installed binary; rerunning install() replaces it with the correct pinned version.","triggerScenarios":"Thrown at packages/cli/src/wasm_bindgen.rs:366 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["The installed wasm-bindgen-cli version does not match the project. Install the exact required version."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"24f6a829df0dfa203961a98ea4cae21c2ff27e28","analyzedAt":"2026-08-23T07:10:14.078Z","contentChangedAt":"2026-08-23T07:10:14.078Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}