Skip to content

esbuild doesn't watch for local library changes while running dev server #25359

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

Closed
1 task done
marcusho21 opened this issue Jun 11, 2023 · 2 comments
Closed
1 task done

Comments

@marcusho21
Copy link

Command

serve

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

When working with multiple projects in an Angular workspace, running ng build --watch on the library living in the same workspace as host app, which is running using ng serve, whenever changes are being made to the library, host app doesn't trigger update when using esbuild. However, the expected behavior where host app dev server would trigger change update whenever a library gets changed works on the stable builder.

Minimal Reproduction

  1. create a library and an application in the same workspace
  2. update angular.json to use esbuild by update "builder": "...browser" to "builder": "...browser-esbuild"
  3. run ng build --watch on the library
  4. run ng serve on the host app
  5. make a change to the library and save
  6. host app doesn't react to the library change

Exception or Error

No response

Your Environment

Angular CLI: 16.0.5
Node: 18.16.0
Package Manager: npm 9.7.1
OS: darwin arm64

Angular: 16.0.5
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1600.5
@angular-devkit/build-angular   16.0.5
@angular-devkit/core            16.0.5
@angular-devkit/schematics      16.0.5
@angular/cdk                    16.0.4
@angular/material               16.0.4
@schematics/angular             16.0.5
ng-packagr                      16.0.1
rxjs                            7.8.1
typescript                      5.0.4

Anything else relevant?

No response

@alan-agius4
Copy link
Collaborator

Duplicate of #25011

@alan-agius4 alan-agius4 marked this as a duplicate of #25011 Jun 12, 2023
@alan-agius4 alan-agius4 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 12, 2023
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jul 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants