{"record":{"id":"85f85d2c00f9bbad","repo":"oven-sh/bun","slug":"invalidrecordkind","errorCode":"InvalidRecordKind","errorMessage":"InvalidRecordKind","messagePattern":"InvalidRecordKind","errorType":"error_code","errorClass":"bun_bundler::Error","httpStatus":null,"severity":"error","filePath":"src/bundler/error.rs","lineNumber":3,"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\")]","sourceCodeStart":1,"sourceCodeEnd":21,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/src/bundler/error.rs#L1-L21","documentation":"Generic sentinel in the bundler Error enum: an import/export record carried a kind value that does not map to any known RecordKind. It indicates corrupted or unsupported module-graph metadata, not a user-facing syntax issue.","triggerScenarios":"Thrown at src/bundler/error.rs:3 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the build; transient state corruption can resolve on a clean rebuild","Check for plugin hooks that fabricate import records with unknown kinds","File a Bun bug with a minimal repro — this should be unreachable"],"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"}