Skip to content

ng serve not detecting file changes #26325

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
KatzRuslan opened this issue Nov 10, 2023 · 9 comments · Fixed by #26346
Closed

ng serve not detecting file changes #26325

KatzRuslan opened this issue Nov 10, 2023 · 9 comments · Fixed by #26346

Comments

@KatzRuslan
Copy link

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

Don't known / other

Is this a regression?

Yes

Description

Generate a brand new project ng new project
Select scss and all other defaults
run npm start
any changes 4.a change *.ts 4.b change *.html 4.c change *.css
save file

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

No response

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

No response

Anything else?

No response

@JoostK JoostK transferred this issue from angular/angular Nov 10, 2023
@alan-agius4
Copy link
Collaborator

Can you please provide the output of ng version

@KatzRuslan
Copy link
Author

KatzRuslan commented Nov 10, 2023 via email

@KatzRuslan
Copy link
Author

KatzRuslan commented Nov 10, 2023 via email

@janerikmai
Copy link

janerikmai commented Nov 10, 2023

cannot confirm 100%. watch and reload works for me on apple silicon with node 20.9 and [email protected], BUT it seems not to recover from broken scss (angular-sass) code

Screenshot 2023-11-10 at 21 55 31 Screenshot 2023-11-10 at 21 50 31

does not recover from error after fix and save for (s)css files

broke scss, saved, fixed, saved,... will not recover from error

Screenshot 2023-11-10 at 21 51 52

@naveedahmed1
Copy link

I am also facing the same issue, it sometimes work and sometimes it doesn't. Most of the times it detect changes a few times and then suddenly stops deteting the changes.

@reduckted
Copy link

BUT it seems not to recover from broken scss (angular-sass) code

This is exactly what I'm experiencing as well. Changes to .scss files are compiled by the CLI successfully and loaded correctly in the browser until there's a compilation error. Once you fix that compilation error in the file, the CLI continues to report a compilation error.

@Alecto
Copy link

Alecto commented Nov 13, 2023

Confirm the same issue

@WDrzewiecki
Copy link

In my case, a similar problem began to occur after migrating to application builder (it was fine while using webpack). It turned out that the server did not detect file changes when the source directory name started with a dot (.). Changing the folder name so that it does not start with a dot solved the problem for me

@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 Dec 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
8 participants