From 427fb4013daa5744b51a8aeca2cc8f1385fd9220 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leosvel=20P=C3=A9rez=20Espinosa?= Date: Tue, 2 Apr 2024 10:11:24 +0200 Subject: [PATCH] fix(angular): prevent false positive validation due to option default value in dev-server executor --- .../angular/src/builders/dev-server/lib/validate-options.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.`); }