{"record":{"id":"33fa76208ee67ab2","repo":"oven-sh/bun","slug":"mismatch","errorCode":null,"errorMessage":"Mismatch","messagePattern":"Mismatch","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"bench/scanner/scan.bun.js","lineNumber":16,"sourceCode":"import { readFileSync } from \"fs\";\nconst fixture = [\"action\", \"default\", \"loader\"];\nconst ITERATIONS = parseInt(process.env.ITERATIONS || \"1\") || 1;\n\nconst transpiler = new Bun.Transpiler({\n  loader: \"ts\",\n});\n\nconsole.time(\"Get exports\");\nconst file = readFileSync(\"remix-route.ts\", \"utf8\");\nfor (let i = 0; i < ITERATIONS; i++) {\n  const { imports, exports } = transpiler.scan(file);\n\n  for (let j = 0; j < fixture.length; j++) {\n    if (fixture[j] !== exports[j]) {\n      throw new Error(\"Mismatch\");\n    }\n  }\n}\n\nconsole.timeEnd(\"Get exports\");\n","sourceCodeStart":1,"sourceCodeEnd":22,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/bench/scanner/scan.bun.js#L1-L22","documentation":"While mapping a package id back to a dependency id, no entry in the resolutions buffer references that package (src/install/lockfile/Buffers.rs:370-391) - the resolution data does not cover the package list, i.e. an internally inconsistent lockfile.","triggerScenarios":"A partially saved or corrupted lockfile where packages exist without matching resolution entries; lockfile rewritten by something other than Bun.","commonSituations":"Interrupted installs, binary merge damage, or a bug in an older Bun's save path.","solutions":["Delete bun.lockb/bun.lock and run `bun install` to regenerate","Or restore a known-good lockfile from git","Upgrade Bun if a crashed save is the suspected producer"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":["Regenerate the lockfile after interrupted installs instead of reusing it","Do not mix lockfiles produced by different tools","Upgrade Bun if crashes during save are recurring"],"tags":["lockfile","corruption","resolutions"],"backgroundTag":null,"analyzedSha":"8c5296ac459e8252d3cd702f3fbcbb0c249d95d5","analyzedAt":"2026-08-16T08:01:58.794Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}