Skip to content

ng serve live reload takes a long time after initial load #26415

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
MichalZonis opened this issue Nov 18, 2023 · 5 comments
Closed

ng serve live reload takes a long time after initial load #26415

MichalZonis opened this issue Nov 18, 2023 · 5 comments

Comments

@MichalZonis
Copy link

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

compiler-cli, compiler

Is this a regression?

Yes

Description

I opened a new project with angular 17. When I run 'ng serve', the initial browser load is normal and as I know from previous angular versions. But when I try to live reload after some minor change to my code, the "Reloading client(s)..." takes a long time to execute if successful at all. I had to exit the ng serve and rerun it for it to work again. Here is my bundle size:

Initial Chunk Files | Names | Raw Size
styles.css | styles | 342.01 kB |
polyfills.js | polyfills | 82.71 kB |
main.js | main | 8.73 kB |

                | Initial Total | 433.45 kB

Application bundle generation complete. [0.131 seconds]

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

live reload takes a long time if works at all and rerun of ng serve is needed to reload the browser.

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

Angular CLI: 17.0.0
Node: 20.9.0
Package Manager: npm 10.1.0
OS: win32 x64

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

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1700.0
@angular-devkit/build-angular   17.0.0
@angular-devkit/core            17.0.0
@angular-devkit/schematics      17.0.0
@angular/cdk                    17.0.0
@angular/cli                    17.0.0
@angular/google-maps            17.0.0
@angular/material               17.0.0
@schematics/angular             17.0.0
rxjs                            7.8.1
typescript                      5.2.2
zone.js                         0.14.2

Anything else?

No response

@JoostK JoostK transferred this issue from angular/angular Nov 19, 2023
@hm-00
Copy link

hm-00 commented Nov 20, 2023

i think there has a been a few reports where ng serve is crashing and all you see on the CLI is "reloading clients"

have not been able to narrow down exactly why this is happening

@dgp1130
Copy link
Collaborator

dgp1130 commented Nov 20, 2023

Could this be a duplicate of #26334? Can you try again on 17.0.2 and let us know if it's still an issue for you?

@MichalZonis
Copy link
Author

Could this be a duplicate of #26334? Can you try again on 17.0.2 and let us know if it's still an issue for you?

Apologies for not seeing it's a duplicate.

I updated the version now, it does seem to resolve the issue!
It still says it reloads the clients even though I see it is already loaded, but the actual issue is resolved.

@dgp1130
Copy link
Collaborator

dgp1130 commented Nov 20, 2023

Glad to hear that fixes it.

Duplicate of #26334

@dgp1130 dgp1130 closed this as completed Nov 20, 2023
@dgp1130 dgp1130 removed the needs: more info Reporter must clarify the issue label Nov 20, 2023
@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 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants