{"record":{"id":"45abb13249292640","repo":"oven-sh/bun","slug":"emptyast","errorCode":null,"errorMessage":"EmptyAST","messagePattern":"EmptyAST","errorType":"error_code","errorClass":"bundler::Error","httpStatus":null,"severity":"error","filePath":"src/bundler/error.rs","lineNumber":35,"sourceCode":"    #[error(\"WriteFailed\")]\n    WriteFailed,\n    #[error(\"DuplicateOutputPath\")]\n    DuplicateOutputPath,\n    #[error(\"MultipleOutputFilesWithoutOutputDir\")]\n    MultipleOutputFilesWithoutOutputDir,\n    #[error(\"InvalidJSON\")]\n    InvalidJSON,\n    #[error(\"Fail\")]\n    Fail,\n    #[error(\"ParserError\")]\n    ParserError,\n    #[error(\"SyntaxError\")]\n    SyntaxError,\n    #[error(\"MinifyError\")]\n    MinifyError,\n    #[error(\"InvalidNativePlugin\")]\n    InvalidNativePlugin,\n    #[error(\"EmptyAST\")]\n    EmptyAST,\n    #[error(\"FormatError\")]\n    FormatError,\n    #[error(\"ResolveMessage\")]\n    ResolveMessage,\n    #[error(\"JSError\")]\n    Js(bun_core::JsError),\n    #[error(transparent)]\n    Sys(#[from] bun_errno::SystemErrno),\n    #[error(transparent)]\n    Alloc(#[from] bun_alloc::AllocError),\n    #[error(transparent)]\n    Core(#[from] bun_core::Error),\n    #[error(transparent)]\n    JsPrinter(#[from] bun_js_printer::Error),\n    #[error(transparent)]\n    Resolver(#[from] bun_resolver::Error),\n    #[error(transparent)]","sourceCodeStart":17,"sourceCodeEnd":53,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/src/bundler/error.rs#L17-L53","documentation":"Sentinel for an unexpectedly empty AST: a source file parsed to nothing (or produced no top-level statements) where content was required. Indicates an empty file used where code is expected, or an internal parse-result inconsistency.","triggerScenarios":"Thrown at src/bundler/error.rs:35 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the file is not empty/truncated and contains the expected code","Verify the loader for the file actually produces statements (e.g. not an empty CSS/JSON)","Clean rebuild to rule out a corrupted intermediate state"],"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"}