{"record":{"id":"1b449ef652887412","repo":"angular/angular-cli","slug":"error-1b449e","errorCode":null,"errorMessage":"*","messagePattern":"\\*","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/angular_devkit/build_angular/src/builders/browser/index.ts","lineNumber":211,"sourceCode":"              throw new Error('Webpack stats build result is required.');\n            }\n\n            // Fix incorrectly set `initial` value on chunks.\n            const extraEntryPoints = [\n              ...normalizeExtraEntryPoints(options.styles || [], 'styles'),\n              ...normalizeExtraEntryPoints(options.scripts || [], 'scripts'),\n            ];\n\n            const webpackStats = {\n              ...webpackRawStats,\n              chunks: markAsyncChunksNonInitial(webpackRawStats, extraEntryPoints),\n            };\n\n            if (!success) {\n              // If using bundle downleveling then there is only one build\n              // If it fails show any diagnostic messages and bail\n              if (statsHasWarnings(webpackStats)) {\n                context.logger.warn(statsWarningsToString(webpackStats, { colors: true }));\n              }\n              if (statsHasErrors(webpackStats)) {\n                context.logger.error(statsErrorsToString(webpackStats, { colors: true }));\n              }\n\n              return {\n                webpackStats: webpackRawStats,\n                output: { success: false },\n              };\n            } else {\n              outputPaths = ensureOutputPaths(baseOutputPath, i18n);\n\n              const scriptsEntryPointName = normalizeExtraEntryPoints(\n                options.scripts || [],\n                'scripts',\n              ).map((x) => x.bundleName);\n\n              if (i18n.shouldInline) {","sourceCodeStart":193,"sourceCodeEnd":229,"githubUrl":"https://github.com/angular/angular-cli/blob/bb72145f9ab45aee29f523236b3a25cd0813a841/packages/angular_devkit/build_angular/src/builders/browser/index.ts#L193-L229","documentation":"When a Webpack build finishes unsuccessfully, buildWebpackBrowser logs the Webpack compilation diagnostics: warnings via statsWarningsToString and errors via statsErrorsToString (this entry's message '*' is the wildcard/first of the webpack stats errors). The builder then returns a failed BrowserBuilderOutput instead of emitting output files. The real message content comes from the webpack stats, e.g. TypeScript errors, module-not-found, or loader failures.","triggerScenarios":"Any webpack compilation failure in the 'browser' builder: TypeScript type errors, unresolved imports, missing assets, loader/plugin errors — statsHasErrors(webpackStats) is true and success is false.","commonSituations":"Importing a module with a wrong path or extension; type errors introduced by code changes; missing dependencies not installed in CI; incompatibility between a third-party package and webpack loaders.","solutions":["Read the full webpack stats error text printed above this line and fix the first reported error.","Run `tsc --noEmit` locally to reproduce TypeScript errors quickly.","Verify missing modules: `npm install` the referenced package or correct the import path.","Re-run `ng build` after fixes and confirm the build succeeds."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":"// Pre-check types before building\n// npx tsc --noEmit -p tsconfig.json || exit 1","typeGuard":null,"tryCatchPattern":"// Programmatic builder usage\ntry {\n  const result = await lastValueFrom(scheduleTarget(target).pipe catchError(err => { log(err.message); return EMPTY; }));\n  if (!result.success) { console.error(result.error ?? 'Build failed'); process.exit(1); }\n} catch (e) {\n  console.error('Build failed:', (e as Error).message);\n  process.exit(1);\n}","preventionTips":["Run tsc --noEmit and lint before webpack builds in CI.","Pin dependencies and install before building (npm ci).","Read the full webpack stats output, not just the last line."],"tags":["webpack","build-failure","compilation-error","angular-cli"],"backgroundTag":"webpack-compilation-error","analyzedSha":"bb72145f9ab45aee29f523236b3a25cd0813a841","analyzedAt":"2026-08-30T02:47:34.745Z","schemaVersion":2},"datasetVersion":"2026-08-30T03:17:51.788Z"}