{"record":{"id":"8cbfebfa006d5d72","repo":"oven-sh/bun","slug":"duplicateoutputpath","errorCode":"DuplicateOutputPath","errorMessage":"DuplicateOutputPath","messagePattern":"DuplicateOutputPath","errorType":"error_code","errorClass":"bun_bundler::Error","httpStatus":null,"severity":"error","filePath":"src/bundler/error.rs","lineNumber":19,"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\")]\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\")]","sourceCodeStart":1,"sourceCodeEnd":37,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/src/bundler/error.rs#L1-L37","documentation":"Sentinel bundler variant: two output entries (chunks/assets) resolved to the same output file path, which would overwrite one with the other. Usually duplicate entry names or two assets with identical names.","triggerScenarios":"Thrown at src/bundler/error.rs:19 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Change naming templates ([dir]/[name].[ext], hashing) so entries don't collide","Rename duplicate entry points or source files that normalize to the same output name","Split outputs into separate outdirs per target"],"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"}