Skip to content
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

Angular wont reload after making any change #27391

Closed
1 task
dombrga opened this issue Mar 31, 2024 · 2 comments
Closed
1 task

Angular wont reload after making any change #27391

dombrga opened this issue Mar 31, 2024 · 2 comments

Comments

@dombrga
Copy link

dombrga commented Mar 31, 2024

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

Hello.

I am using WSL2 ubuntu to make an angular app.

The app does not reload after I make any change in any file.
image

But when I delete package-lock and node_modules, and run npm install again in Windows and not in WSL2, and run the app then make a change, it works perfectly fine.

Thank you!

Minimal Reproduction

  1. In wsl2, I installed angular cli by npm i -g @angular/cli
  2. ng new
  3. npm run start/ng serve
  4. The app runs, but when I make a change in the title property in the app.component.ts file, the changes do not reflect automatically.
image image image

The terminal just always looks like this whenever I make a change in html or ts files. No error in browser console as well.

Exception or Error

None.

Your Environment

_                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 17.3.2
Node: 20.11.1
Package Manager: npm 10.2.4
OS: linux x64

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

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1703.2
@angular-devkit/build-angular   17.3.2
@angular-devkit/core            17.3.2
@angular-devkit/schematics      17.3.2
@schematics/angular             17.3.2
rxjs                            7.8.1
typescript                      5.4.3
zone.js                         0.14.4

Anything else relevant?

I am using

  1. wsl2 ubuntu
  2. visual studio code
  3. microsoft edge browser

I just want to reiterate that it works perfectly fine on Windows (after deleting node_modules and package-lock file and doing npm i) and not on wsl2.

Thank you!

@alan-agius4
Copy link
Collaborator

This issue has surfaced previously, and it appears that Angular CLI might not be the culprit; instead, it seems to be a bug within WSL2. For further details, you can refer to the discussion here: microsoft/WSL#4739

@alan-agius4 alan-agius4 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 1, 2024
@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 May 2, 2024
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