diff --git a/packages/angular/src/builders/dev-server/lib/validate-options.ts b/packages/angular/src/builders/dev-server/lib/validate-options.ts index 9de02738bd634..03dbefb611bcb 100644 --- a/packages/angular/src/builders/dev-server/lib/validate-options.ts +++ b/packages/angular/src/builders/dev-server/lib/validate-options.ts @@ -7,7 +7,7 @@ export function validateOptions(options: Schema): void { const { major: angularMajorVersion, version: angularVersion } = getInstalledAngularVersionInfo(); - if (lt(angularVersion, '16.1.0') && options.forceEsbuild !== undefined) { + if (lt(angularVersion, '16.1.0') && options.forceEsbuild) { throw new Error(stripIndents`The "forceEsbuild" option is only supported in Angular >= 16.1.0. You are currently using "${angularVersion}". You can resolve this error by removing the "forceEsbuild" option or by migrating to Angular 16.1.0.`); }