{"id":"22afd7b891f8c194","repo":"webpack/webpack","slug":"unsupported-chunk-format-options-output-chunkfo","errorCode":null,"errorMessage":"Unsupported chunk format '${options.output.chunkFormat}'.","messagePattern":"Unsupported chunk format '(.+?)'\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"lib/WebpackOptionsApply.js","lineNumber":352,"sourceCode":"\t\t\t\t\tconst ArrayPushCallbackChunkFormatPlugin = require(\"./javascript/ArrayPushCallbackChunkFormatPlugin\");\n\n\t\t\t\t\tnew ArrayPushCallbackChunkFormatPlugin().apply(compiler);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase \"commonjs\": {\n\t\t\t\t\tconst CommonJsChunkFormatPlugin = require(\"./javascript/CommonJsChunkFormatPlugin\");\n\n\t\t\t\t\tnew CommonJsChunkFormatPlugin().apply(compiler);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase \"module\": {\n\t\t\t\t\tconst ModuleChunkFormatPlugin = require(\"./esm/ModuleChunkFormatPlugin\");\n\n\t\t\t\t\tnew ModuleChunkFormatPlugin().apply(compiler);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new Error(\n\t\t\t\t\t\t`Unsupported chunk format '${options.output.chunkFormat}'.`\n\t\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\tconst enabledChunkLoadingTypes =\n\t\t\t/** @type {NonNullable<WebpackOptions[\"output\"][\"enabledChunkLoadingTypes\"]>} */\n\t\t\t(options.output.enabledChunkLoadingTypes);\n\n\t\tif (enabledChunkLoadingTypes.length > 0) {\n\t\t\tfor (const type of enabledChunkLoadingTypes) {\n\t\t\t\tconst EnableChunkLoadingPlugin = require(\"./javascript/EnableChunkLoadingPlugin\");\n\n\t\t\t\tnew EnableChunkLoadingPlugin(type).apply(compiler);\n\t\t\t}\n\t\t}\n\n\t\tconst enabledWasmLoadingTypes =","sourceCodeStart":334,"sourceCodeEnd":370,"githubUrl":"https://github.com/webpack/webpack/blob/318421ea8ac81371f5171236a6efb63675576528/lib/WebpackOptionsApply.js#L334-L370","documentation":"Error \"Unsupported chunk format '${options.output.chunkFormat}'.\" thrown in webpack/webpack.","triggerScenarios":"Thrown at lib/WebpackOptionsApply.js:352 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set output.chunkFormat to a supported value for the selected target (e.g. 'array-push', 'commonjs', or 'module'), or leave it unset to use the default."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"318421ea8ac81371f5171236a6efb63675576528","analyzedAt":"2026-08-03T19:39:56.731Z","schemaVersion":2}