{"record":{"id":"8de235d78c72f1fd","repo":"DioxusLabs/dioxus","slug":"missing-wasm-bindgen-cli","errorCode":null,"errorMessage":"Missing wasm-bindgen-cli@{}","messagePattern":"Missing wasm-bindgen-cli@(.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/cli/src/wasm_bindgen.rs","lineNumber":395,"sourceCode":"        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\n        if !path.exists() {\n            self.install().await?;\n        }\n\n        Ok(())\n    }\n\n    pub fn get_binary_path(&self) -> anyhow::Result<PathBuf> {\n        if CliSettings::prefer_no_downloads() {\n            which::which(\"wasm-bindgen\")\n                .map_err(|_| anyhow!(\"Missing wasm-bindgen-cli@{}\", self.version))\n        } else {\n            let installed_name = self.installed_bin_name();\n            let install_dir = self.install_dir()?;\n            Ok(install_dir.join(installed_name))\n        }\n    }\n\n    fn install_dir(&self) -> anyhow::Result<PathBuf> {\n        let dir = Workspace::tools_dir().join(format!(\"wasm-bindgen-{}\", self.version));\n        std::fs::create_dir_all(&dir)?;\n        Ok(dir)\n    }\n\n    fn installed_bin_name(&self) -> &'static str {\n        if cfg!(windows) {\n            \"wasm-bindgen.exe\"\n        } else {\n            \"wasm-bindgen\"","sourceCodeStart":377,"sourceCodeEnd":413,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/cli/src/wasm_bindgen.rs#L377-L413","documentation":"Failure of WasmBindgen::get_binary_path when downloads are disabled (CliSettings::prefer_no_downloads) and no `wasm-bindgen` executable is on PATH; the project's pinned version cannot be located, so the user must install wasm-bindgen-cli themselves.","triggerScenarios":"Thrown at packages/cli/src/wasm_bindgen.rs:395 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["wasm-bindgen-cli is missing. Install it with cargo install wasm-bindgen-cli at the 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"}