{"record":{"id":"17d0c8e4635969f1","repo":"oven-sh/bun","slug":"multipleoutputfileswithoutoutputdir","errorCode":"MultipleOutputFilesWithoutOutputDir","errorMessage":"MultipleOutputFilesWithoutOutputDir","messagePattern":"MultipleOutputFilesWithoutOutputDir","errorType":"error_code","errorClass":"bun_bundler::Error","httpStatus":null,"severity":"error","filePath":"src/bundler/error.rs","lineNumber":21,"sourceCode":"    #[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\")]\n    FormatError,\n    #[error(\"ResolveMessage\")]","sourceCodeStart":3,"sourceCodeEnd":39,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/src/bundler/error.rs#L3-L39","documentation":"Sentinel variant of the bundler Error enum: multiple output files were produced (or requested via multiple entry points/assets) but no --outdir was given, so the bundler has nowhere to place them. Using stdout/inline output only supports a single file; consumers match on the variant name.","triggerScenarios":"Thrown at src/bundler/error.rs:21 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set `outdir` in the bundler config or pass --outdir on the CLI","Reduce the build to a single output file if no directory is desired","Explicitly name a single outfile for single-entry builds"],"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"}