{"record":{"id":"1c1902b4b22ebd2a","repo":"DioxusLabs/dioxus","slug":"build-failed-for-platform-bundle-format","errorCode":null,"errorMessage":"Build failed for platform: {bundle_format}","messagePattern":"Build failed for platform: (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"packages/cli/src/cli/run.rs","lineNumber":128,"sourceCode":"                            BuildStage::Bundling => {\n                                tracing::info!(\"[{bundle_format}] Bundling app\")\n                            }\n                            BuildStage::RunningGradle => {\n                                tracing::info!(\"[{bundle_format}] Running Gradle\")\n                            }\n                            BuildStage::CodeSigning => {\n                                tracing::info!(\"[{bundle_format}] Code signing app\")\n                            }\n                            BuildStage::Success => {}\n                            BuildStage::Restarting => {}\n                            BuildStage::CompressingAssets => {}\n                            BuildStage::ExtractingAssets => {}\n                            BuildStage::Prerendering => {\n                                tracing::info!(\"[{bundle_format}] Prerendering app\")\n                            }\n                            BuildStage::Failed => {\n                                tracing::error!(\"[{bundle_format}] Build failed\");\n                                bail!(\"Build failed for platform: {bundle_format}\");\n                            }\n                            BuildStage::Aborted => {\n                                tracing::error!(\"[{bundle_format}] Build aborted\");\n                                bail!(\"Build aborted for platform: {bundle_format}\");\n                            }\n                            _ => {}\n                        },\n                        BuilderUpdate::CompilerMessage { message } => {\n                            print!(\"{message}\");\n                        }\n                        BuilderUpdate::BuildFailed { err } => {\n                            tracing::error!(\"❌ Build failed: {}\", err);\n                            return Err(err);\n                        }\n                        BuilderUpdate::StdoutReceived { msg } => {\n                            tracing::info!(\"[{bundle_format}] {msg}\");\n                        }\n                        BuilderUpdate::StderrReceived { msg } => {","sourceCodeStart":110,"sourceCodeEnd":146,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/cli/src/cli/run.rs#L110-L146","documentation":"Terminal-state report in the run loop: while consuming BuilderUpdate progress events for a platform build, the stage transitioned to BuildStage::Failed, meaning the compile/bundle pipeline for that bundle format aborted with an error. This surfaces the failed build stage to the caller rather than continuing to launch; the underlying compiler error has already been printed via the error stream.","triggerScenarios":"Thrown at packages/cli/src/cli/run.rs:128 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["The build failed for the target platform. Fix the compilation errors and rebuild."],"exampleFix":null,"handlingStrategy":"try-catch","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"}