diff --git a/packages/angular/src/migrations/update-17-1-0/browser-target-to-build-target.ts b/packages/angular/src/migrations/update-17-1-0/browser-target-to-build-target.ts index bee575ace121d..a55094f5815a2 100644 --- a/packages/angular/src/migrations/update-17-1-0/browser-target-to-build-target.ts +++ b/packages/angular/src/migrations/update-17-1-0/browser-target-to-build-target.ts @@ -67,7 +67,7 @@ function updateConfig(config: { browserTarget?: string; buildTarget?: string; }): void { - if (config.browserTarget) { + if (config && config.browserTarget) { config.buildTarget ??= config.browserTarget; delete config.browserTarget; }