Skip to content

ng serve not detecting file changes #26325

Closed

Description

@KatzRuslan

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

Activity

  1. transferred this issue fromangular/angularon Nov 10, 2023
  2. alan-agius4 commented on Nov 10, 2023

    @alan-agius4
    Collaborator

    Can you please provide the output of ng version

  3. KatzRuslan commented on Nov 10, 2023

    @KatzRuslan
    Author
  4. KatzRuslan commented on Nov 10, 2023

    @KatzRuslan
    Author
  5. janerikmai commented on Nov 10, 2023

    @janerikmai

    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
  6. naveedahmed1 commented on Nov 10, 2023

    @naveedahmed1

    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.

  7. reduckted commented on Nov 12, 2023

    @reduckted

    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.

  8. Alecto commented on Nov 13, 2023

    @Alecto

    Confirm the same issue

  9. WDrzewiecki commented on Nov 14, 2023

    @WDrzewiecki

    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

  10. angular-automatic-lock-bot commented on Dec 16, 2023

    @angular-automatic-lock-bot

    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.

  11. locked and limited conversation to collaborators on Dec 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions