{"record":{"id":"63111aa0bcdc4c2f","repo":"oven-sh/bun","slug":"parsererror","errorCode":null,"errorMessage":"ParserError","messagePattern":"ParserError","errorType":"error_code","errorClass":"bundler::Error","httpStatus":null,"severity":"error","filePath":"src/bundler/error.rs","lineNumber":27,"sourceCode":"    #[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\")]\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)]","sourceCodeStart":9,"sourceCodeEnd":45,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/src/bundler/error.rs#L9-L45","documentation":"Sentinel variant of the bundler Error enum: the JavaScript/TypeScript parser rejected the source with a syntax-level parse failure that is reported through the bundler's error channel. Distinct from SyntaxError, which covers later syntax-related diagnostics; consumers match on the variant.","triggerScenarios":"Thrown at src/bundler/error.rs:27 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the syntax error at the reported line/column","Check the file's loader matches its syntax (e.g. JSX in a .js file needs the right loader)","Preprocess non-standard syntax (macros, exotic proposals) before bundling"],"exampleFix":null,"handlingStrategy":"validation","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"}