Skip to content

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

@MichalZonis

Description

@MichalZonis

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

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