{"record":{"id":"cc9b9d339e5c81cf","repo":"DioxusLabs/dioxus","slug":"make-sure-you-have-bun-installed-failed-to-genera","errorCode":null,"errorMessage":"Make sure you have Bun installed. Failed to generate bindings for {:?}. Error:\n{:?}","messagePattern":"Make sure you have Bun installed\\. Failed to generate bindings for (.+?)\\. Error:\n(.+?)","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/lazy-js-bundle/src/lib.rs","lineNumber":186,"sourceCode":"    // If the file is generated, and the hash is different, we need to generate it\n    let status = Command::new(\"bun\")\n        .arg(\"build\")\n        .arg(input_path)\n        .arg(\"--outfile\")\n        .arg(output_path)\n        .args(minify_level.as_args())\n        .status();\n\n    let status = match status {\n        Ok(status) => status,\n        Err(error) => {\n            if Command::new(\"bun\").status().is_ok() {\n                panic!(\n                    \"Bun failed to generated bindings for {:?}. Error:\\n{:?}\",\n                    input_path, error\n                );\n            } else {\n                panic!(\n                    \"Make sure you have Bun installed. Failed to generate bindings for {:?}. Error:\\n{:?}\",\n                    input_path, error\n                );\n            }\n        }\n    };\n\n    if !status.success() {\n        panic!(\"Bun failed to generate bindings for {:?}.\", input_path);\n    }\n}\n","sourceCodeStart":168,"sourceCodeEnd":198,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/lazy-js-bundle/src/lib.rs#L168-L198","documentation":"Spawning `bun build` failed and a bare `bun` status check also failed, so the build script concludes the Bun runtime is not installed at all. Bun is a hard requirement of lazy-js-bundle's binding generation.","triggerScenarios":"Thrown at packages/lazy-js-bundle/src/lib.rs:186 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Install Bun and make sure it is on PATH, then rebuild."],"exampleFix":null,"handlingStrategy":"validation","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-14T05:17:10.506Z"}