Open
Description
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
18.0.1
Description
After upgrading my project from Angular 18 to Angular 19 using ng update, I've noticed a significant performance degradation with ng serve. Previously, rebuilds were much faster, but now they take up to 10 seconds or more.
Minimal Reproduction
https://github.com/Oussemasahbeni/saha-meter-frontend
I made the repo public until the issue got resolved, its a close source project for my company
Please check the clean-up branch
Exception or Error
Your Environment
Angular CLI: 19.0.2
Node: 22.11.0
Package Manager: npm 10.9.0
OS: win32 x64
Angular: 19.0.1
... animations, cdk, common, compiler, compiler-cli, core, forms
... material, material-luxon-adapter, platform-browser
... platform-browser-dynamic, router, service-worker
... youtube-player
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1900.2
@angular-devkit/build-angular 19.0.2
@angular-devkit/core 19.0.2
@angular-devkit/schematics 19.0.2
@angular/build 19.0.2
@angular/cli 19.0.2
@schematics/angular 19.0.2
rxjs 7.8.1
typescript 5.6.3
zone.js 0.15.0
Anything else relevant?
I managed to make it a little bit faster by disabling aot in development
"development": {
"optimization": false,
"extractLicenses": false,
"aot":false,
"sourceMap": true
}
but still a lot of people told that is not a solution but a workaround and it can hurt the project in the long term