DioxusLabs/dioxus · error · anyhow::Error
Build failed for platform: {bundle_format}
Error message
Build failed for platform: {bundle_format} What it means
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.
Source
Thrown at packages/cli/src/cli/run.rs:128
BuildStage::Bundling => {
tracing::info!("[{bundle_format}] Bundling app")
}
BuildStage::RunningGradle => {
tracing::info!("[{bundle_format}] Running Gradle")
}
BuildStage::CodeSigning => {
tracing::info!("[{bundle_format}] Code signing app")
}
BuildStage::Success => {}
BuildStage::Restarting => {}
BuildStage::CompressingAssets => {}
BuildStage::ExtractingAssets => {}
BuildStage::Prerendering => {
tracing::info!("[{bundle_format}] Prerendering app")
}
BuildStage::Failed => {
tracing::error!("[{bundle_format}] Build failed");
bail!("Build failed for platform: {bundle_format}");
}
BuildStage::Aborted => {
tracing::error!("[{bundle_format}] Build aborted");
bail!("Build aborted for platform: {bundle_format}");
}
_ => {}
},
BuilderUpdate::CompilerMessage { message } => {
print!("{message}");
}
BuilderUpdate::BuildFailed { err } => {
tracing::error!("❌ Build failed: {}", err);
return Err(err);
}
BuilderUpdate::StdoutReceived { msg } => {
tracing::info!("[{bundle_format}] {msg}");
}
BuilderUpdate::StderrReceived { msg } => {View on GitHub (pinned to 24f6a829df)
Solutions
- The build failed for the target platform. Fix the compilation errors and rebuild.
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at packages/cli/src/cli/run.rs:128 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of DioxusLabs/dioxus@24f6a829df (2026-08-23).
Data as JSON: /api/errors/1c1902b4b22ebd2a.
Report an issue: GitHub.