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

serve with "@nx/angular:dev-server" doesn't work with "@nx/angular:browser-esbuild" executor in 17.2.0-beta.10 #20485

Closed
1 of 4 tasks
atsjo opened this issue Nov 29, 2023 · 1 comment · Fixed by #20492
Closed
1 of 4 tasks
Assignees
Labels
outdated scope: angular Issues related to Angular support in Nx type: bug

Comments

@atsjo
Copy link

atsjo commented Nov 29, 2023

Current Behavior

When changing build-executor to @nx/angular:browser-esbuild and serve-executor to @nx/angular:dev-server, serve fails with this error message:

Error: Either `browser` or at least one `entryPoints` value must be provided.

verbose logging provided below...

Expected Behavior

serve with "@nx/angular:dev-server" executor works with build "@nx/angular:browser-esbuild" executor (as it does with "@angular-devkit/build-angular:browser-esbuild" executor)

GitHub Repo

No response

Steps to Reproduce

  1. create nx project with angular app
  2. change build executor to @nx/angular:browser-esbuild
  3. change serve executor to @nx/angular:dev-server
  4. run serve

Nx Report

Node   : 20.10.0
   OS     : win32-x64
   pnpm   : 8.11.0
   
   nx                 : 17.2.0-beta.10
   @nx/js             : 17.2.0-beta.10
   @nx/jest           : 17.2.0-beta.10
   @nx/linter         : 17.2.0-beta.10
   @nx/eslint         : 17.2.0-beta.10
   @nx/workspace      : 17.2.0-beta.10
   @nx/angular        : 17.2.0-beta.10
   @nx/cypress        : 17.2.0-beta.10
   @nx/devkit         : 17.2.0-beta.10
   @nx/esbuild        : 17.2.0-beta.10
   @nx/eslint-plugin  : 17.2.0-beta.10
   @nrwl/tao          : 17.2.0-beta.10
   @nx/web            : 17.2.0-beta.10
   @nx/webpack        : 17.2.0-beta.10
   typescript         : 5.2.2
   ---------------------------------------
   Community plugins:
   angular-calendar : 0.31.0

Failure Logs

>  NX   Either `browser` or at least one `entryPoints` value must be provided.


Error: Either `browser` or at least one `entryPoints` value must be provided.
    at normalizeEntryPoints (D:\repos\teve-no\task4s\node_modules\.pnpm\@angular-devkit+build-angular@17.0.4_@angular+compiler-cli@17.0.5_@swc+core@1.3.99_@types+nod_ckx7d3vgawyzxtlxk6xg2nb6jy\node_modules\@angular-devkit\build-angular\src\builders\application\options.js:241:15)
    at normalizeOptions (D:\repos\teve-no\task4s\node_modules\.pnpm\@angular-devkit+build-angular@17.0.4_@angular+compiler-cli@17.0.5_@swc+core@1.3.99_@types+nod_ckx7d3vgawyzxtlxk6xg2nb6jy\node_modules\@angular-devkit\build-angular\src\builders\application\options.js:60:25)
    at async buildApplicationInternal (D:\repos\teve-no\task4s\node_modules\.pnpm\@angular-devkit+build-angular@17.0.4_@angular+compiler-cli@17.0.5_@swc+core@1.3.99_@types+nod_ckx7d3vgawyzxtlxk6xg2nb6jy\node_modules\@angular-devkit\build-angular\src\builders\application\index.js:31:31)
    at async serveWithVite (D:\repos\teve-no\task4s\node_modules\.pnpm\@angular-devkit+build-angular@17.0.4_@angular+compiler-cli@17.0.5_@swc+core@1.3.99_@types+nod_ckx7d3vgawyzxtlxk6xg2nb6jy\node_modules\@angular-devkit\build-angular\src\builders\dev-server\vite-server.js:124:22)

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

It seems to require the same changes in config necessary for using the new application builder, but they are not compatible with @nx/angular:browser-esbuild or @angular-devkit/build-angular:browser-esbuild

Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated scope: angular Issues related to Angular support in Nx type: bug
Projects
None yet
2 participants