{"record":{"id":"09621c84ab86a12a","repo":"oven-sh/bun","slug":"buildfailed","errorCode":"BuildFailed","errorMessage":"BuildFailed","messagePattern":"BuildFailed","errorType":"error_code","errorClass":"bun_bundler::Error","httpStatus":null,"severity":"error","filePath":"src/bundler/error.rs","lineNumber":7,"sourceCode":"#[derive(Debug, Clone, Copy, PartialEq, Eq, thiserror::Error)]\npub enum Error {\n    #[error(\"InvalidRecordKind\")]\n    InvalidRecordKind,\n    #[error(\"ModuleNotFound\")]\n    ModuleNotFound,\n    #[error(\"BuildFailed\")]\n    BuildFailed,\n    #[error(\"CompilationFailed\")]\n    CompilationFailed,\n    #[error(\"Plugin\")]\n    Plugin,\n    #[error(\"InvalidCssImport\")]\n    InvalidCssImport,\n    #[error(\"PrintError\")]\n    PrintError,\n    #[error(\"WriteFailed\")]\n    WriteFailed,\n    #[error(\"DuplicateOutputPath\")]\n    DuplicateOutputPath,\n    #[error(\"MultipleOutputFilesWithoutOutputDir\")]\n    MultipleOutputFilesWithoutOutputDir,\n    #[error(\"InvalidJSON\")]\n    InvalidJSON,\n    #[error(\"Fail\")]","sourceCodeStart":1,"sourceCodeEnd":25,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/src/bundler/error.rs#L1-L25","documentation":"Sentinel for an overall bundler build failure: one or more chunk-level or graph-level errors prevented producing output. It wraps/represents the aggregate failure state rather than a single root cause.","triggerScenarios":"Thrown at src/bundler/error.rs:7 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the full diagnostic list printed with the build failure; fix the first real error","Rebuild after changes — errors earlier in the graph can cascade","Run with a clean cache/output dir to rule out stale artifacts"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8c5296ac459e8252d3cd702f3fbcbb0c249d95d5","analyzedAt":"2026-08-16T08:01:58.794Z","contentChangedAt":"2026-08-16T08:01:58.794Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}