-
Notifications
You must be signed in to change notification settings - Fork 12k
Angular CLI devserver doesn't properly watch files on Linux #9606
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
Comments
I'm submitting a...
Current behaviorfsevents module seems to have dropped support for linux or has a bug. Makes the whole development of angular apps not worth doing because you gave to not only refresh the browser to make changes visible but restart the server. `$ ng update up to date in 8.323s up to date in 8.274s up to date in 8.222s `$ npm install -g fsevents npm ERR! code EBADPLATFORM npm ERR! A complete log of this run can be found in: Expected behaviorInstalls fsevents module Minimal reproduction of the problem with instructionsWhat is the motivation / use case for changing the behavior?Environment
|
Is this still a problem with recent Angular and CLI versions? |
Yes. It see it happen regularly on files generated by graphql-codegen (generates interfaces and more from graphql documents).
|
@j2L4e I think that situation is expected-ish, I've seen webpack have trouble with whole dirs being recreated in the past. I'm not sure what the semantics there should be either really... if a bunch of files are recreated the order of creation would probably matter, as they can be importing each other. Webpack tries to wait a bit and batch file changes but it might not get all of them at once in a reload. File system events are also not that accurate, which makes the batching harder. The originally reported problem of a default source TS file in a new CLI app not updating the browser was more worrisome though. |
Understand. Thanks! |
Thanks for reporting this issue. This issue is now obsolete due to changes in the recent releases. Please update to the most recent Angular CLI version. If the problem persists after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Versions
Repro steps
ng serve
Observed behavior
Nothing happens, the change is not visible on the served port
localhost:4200
.Desired behavior
As usual, the devserver should pick up the change and recompile the TypeScript files.
Mention any other details that might be useful (optional)
Upon installation of the npm packages the following warning appears:
Also, as a workaround for now adding the
poll
flag seems to workThis issue seems related to #8168 & maybe to #9572
The text was updated successfully, but these errors were encountered: