Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(angular): fix dev-server validation for esbuildMiddleware #21413

Merged

Conversation

leosvelperez
Copy link
Member

@leosvelperez leosvelperez commented Jan 30, 2024

Current Behavior

The @nx/angular:dev-server executor throws an error when the Angular version is lower than 17.0.0 even though the esbuildMiddleware options is not provided.

This happens because the Angular CLI schema parser converts an undefined array option to an empty array.

Expected Behavior

The @nx/angular:dev-server executor should not throw when the esbuildMiddleware option is not provided.

Related Issue(s)

Fixes #21410

@leosvelperez leosvelperez self-assigned this Jan 30, 2024
Copy link

vercel bot commented Jan 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Jan 30, 2024 10:39am

@leosvelperez leosvelperez marked this pull request as ready for review January 30, 2024 10:39
@leosvelperez leosvelperez requested a review from a team as a code owner January 30, 2024 10:39
@leosvelperez leosvelperez enabled auto-merge (squash) January 30, 2024 11:05
@leosvelperez leosvelperez merged commit 1640a67 into nrwl:master Jan 30, 2024
6 checks passed
@leosvelperez leosvelperez deleted the angular/fix-dev-server-validation branch January 30, 2024 12:33
FrozenPandaz pushed a commit that referenced this pull request Jan 31, 2024
Copy link

github-actions bot commented Feb 5, 2024

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The "esbuildMiddleware" option is only supported in Angular >= 17
2 participants