{"record":{"id":"6f50bd36d5074329","repo":"angular/angular-cli","slug":"the-angular-devkit-build-angular-dev-server-bui","errorCode":null,"errorMessage":"The \"@angular-devkit/build-angular:dev-server\" builder is deprecated as part of Angular's Webpack support deprecation. Use \"@angular/build:dev-server\" instead. For more information, see https://angular.dev/tools/cli/build-system-migration.","messagePattern":"The \"@angular-devkit/build-angular:dev-server\" builder is deprecated as part of Angular's Webpack support deprecation\\. Use \"@angular/build:dev-server\" instead\\. For more information, see https://angular\\.dev/tools/cli/build-system-migration\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"packages/angular_devkit/build_angular/src/builders/dev-server/builder.ts","lineNumber":76,"sourceCode":"  }\n\n  context.logger.warn(\n    'The \"@angular-devkit/build-angular:dev-server\" builder is deprecated as part of Angular\\'s Webpack support deprecation. ' +\n      'Use \"@angular/build:dev-server\" instead. For more information, see https://angular.dev/tools/cli/build-system-migration.',\n  );\n\n  return defer(() => initialize(options, projectName, context, extensions?.builderSelector)).pipe(\n    switchMap(({ builderName, normalizedOptions }) => {\n      // Use vite-based development server for esbuild-based builds\n      if (isEsbuildBased(builderName)) {\n        if (transforms?.logging || transforms?.webpackConfiguration) {\n          throw new Error(\n            `The \"application\" and \"browser-esbuild\" builders do not support Webpack transforms.`,\n          );\n        }\n\n        if (options.publicHost) {\n          context.logger.warn(\n            `The \"publicHost\" option will not be used because it is not supported by the \"${builderName}\" builder.`,\n          );\n        }\n\n        if (options.disableHostCheck) {\n          context.logger.warn(\n            `The \"disableHostCheck\" option will not be used because it is not supported by the \"${builderName}\" builder.`,\n          );\n        }\n\n        // New build system defaults hmr option to the value of liveReload\n        normalizedOptions.hmr ??= normalizedOptions.liveReload;\n\n        // New build system uses Vite's allowedHost option convention of true for disabling host checks\n        if (normalizedOptions.disableHostCheck) {\n          (normalizedOptions as unknown as { allowedHosts: true }).allowedHosts = true;\n        } else {\n          normalizedOptions.allowedHosts ??= [];","sourceCodeStart":58,"sourceCodeEnd":94,"githubUrl":"https://github.com/angular/angular-cli/blob/bb72145f9ab45aee29f523236b3a25cd0813a841/packages/angular_devkit/build_angular/src/builders/dev-server/builder.ts#L58-L94","documentation":"Deprecation warning shown whenever the Webpack-based '@angular-devkit/build-angular:dev-server' builder runs. Angular is deprecating Webpack dev-server support in favor of the Vite/esbuild-based '@angular/build:dev-server'. Functionality continues but the builder will eventually be removed.","triggerScenarios":"Any `ng serve` (or programmatic schedule) using a target configured with '@angular-devkit/build-angular:dev-server'.","commonSituations":"Upgraded workspaces still serving with the old builder because angular.json was not migrated; mixed teams where some targets use '@angular/build:dev-server' and others the legacy one.","solutions":["Switch the serve target builder to '@angular/build:dev-server' in angular.json.","Run `ng update @angular/cli` to get the automated build-system migration.","If staying temporarily on Webpack, plan removal since the builder will be dropped."],"exampleFix":"// before\n\"builder\": \"@angular-devkit/build-angular:dev-server\"\n// after\n\"builder\": \"@angular/build:dev-server\"","handlingStrategy":"validation","validationCode":"if (target.builder === '@angular-devkit/build-angular:dev-server') {\n  console.warn('Deprecated dev-server builder; migrate serve target to @angular/build:dev-server.');\n}","typeGuard":"function isLegacyDevServer(t: { builder: string }): boolean {\n  return t.builder === '@angular-devkit/build-angular:dev-server';\n}","tryCatchPattern":null,"preventionTips":["Migrate serve targets together with build targets to avoid mixed stacks.","Use `ng update @angular/cli` rather than manual builder swaps.","Review serve options (publicHost, disableHostCheck) after migration."],"tags":["angular-cli","deprecation","dev-server","webpack"],"backgroundTag":"deprecated-webpack-builder","analyzedSha":"bb72145f9ab45aee29f523236b3a25cd0813a841","analyzedAt":"2026-08-30T02:47:34.745Z","schemaVersion":2},"datasetVersion":"2026-08-30T08:17:16.595Z"}