DioxusLabs/dioxus · error · anyhow::Error
Build aborted for platform: {bundle_format}
Error message
Build aborted for platform: {bundle_format} What it means
Terminal-state report in the run loop: a BuilderUpdate progress event reported a build stage indicating the build for this bundle format was aborted (e.g. interrupted or cancelled mid-pipeline) rather than failing with a compiler error. It distinguishes a user/system-initiated abort from the 'Build failed' path and stops the run loop for that platform.
Source
Thrown at packages/cli/src/cli/run.rs:132
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 } => {
tracing::error!("[{bundle_format}] {msg}");
}
BuilderUpdate::ProcessExited { status } => {
if !status.success() {View on GitHub (pinned to 24f6a829df)
Solutions
- The build was aborted before completion. Rerun the build; investigate the abort cause if it repeats.
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at packages/cli/src/cli/run.rs:132 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/df6944a1e7fbafff.
Report an issue: GitHub.