Skip to content

esbuild/vite dev-server not picking up file changes from libraries outside the main application folder #25322

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
preda7or opened this issue Jun 6, 2023 · 3 comments

Comments

@preda7or
Copy link

preda7or commented Jun 6, 2023

Which @angular/* package(s) are the source of the bug?

Don't known / other

Is this a regression?

Yes

Description

I am using Nrwl/Nx workspace containing app and lib projects in /apps/app and /libs/lib1,2,3 folders respectively.
Tried the experimental @angular-devkit/build-angular:browser-esbuild executor to build and serve the application.
Builds works fine, serve's initial build works fine.
If I change files in the main application dev-server updates fine.

But if I change files in the library folders, the change is not picked up by the dev-server, so I have to restart the whole to get the changes.

Please provide a link to a minimal reproduction of the bug

https://github.com/preda7or/nx-workspace

Please provide the exception or error you saw

No error/exceptions.

Please provide the environment you discovered this bug in (run ng version)

Angular CLI: 16.0.4
Node: 16.20.0
Package manager: NPM 8.19.4

Angular: 16.0.4
using `@angular-devkit/build-angular:browser-esbuild` !!!

Anything else?

I know the vite/esbuild dev-server is experimental, just wanted to let you know about this.

@pkozlowski-opensource pkozlowski-opensource transferred this issue from angular/angular Jun 6, 2023
@alan-agius4
Copy link
Collaborator

Duplicate of #25011

@alan-agius4 alan-agius4 marked this as a duplicate of #25011 Jun 6, 2023
@alan-agius4 alan-agius4 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 6, 2023
@preda7or
Copy link
Author

preda7or commented Jun 6, 2023

Sorry, I was searching in the open issues. Will be more thorough next time.

@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 7, 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