Title: AOT builds with TypeScript 5.6 or later are slower in Angular 19 · Issue #59040 · angular/angular · GitHub
Open Graph Title: AOT builds with TypeScript 5.6 or later are slower in Angular 19 · Issue #59040 · angular/angular
X Title: AOT builds with TypeScript 5.6 or later are slower in Angular 19 · Issue #59040 · angular/angular
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 u...
Open Graph 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 ...
X 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 ...
Opengraph URL: https://github.com/angular/angular/issues/59040
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AOT builds with TypeScript 5.6 or later are slower in Angular 19","articleBody":"### Command\n\nserve\n\n### Is this a regression?\n\n- [x] Yes, this behavior used to work in the previous version\n\n### The previous version in which this bug was not present was\n\n18.0.1\n\n### Description\n\nAfter 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.\n\n\n\n\n\n### Minimal Reproduction\n\nhttps://github.com/Oussemasahbeni/saha-meter-frontend\n\nI made the repo public until the issue got resolved, its a close source project for my company\nPlease check the clean-up branch\n\n### Exception or Error\n\n```text\n\n```\n\n### Your Environment\n\n```text\nAngular CLI: 19.0.2\nNode: 22.11.0\nPackage Manager: npm 10.9.0\nOS: win32 x64\n\nAngular: 19.0.1\n... animations, cdk, common, compiler, compiler-cli, core, forms\n... material, material-luxon-adapter, platform-browser\n... platform-browser-dynamic, router, service-worker\n... youtube-player\n\nPackage Version\n---------------------------------------------------------\n@angular-devkit/architect 0.1900.2\n@angular-devkit/build-angular 19.0.2\n@angular-devkit/core 19.0.2\n@angular-devkit/schematics 19.0.2\n@angular/build 19.0.2\n@angular/cli 19.0.2\n@schematics/angular 19.0.2\nrxjs 7.8.1\ntypescript 5.6.3\nzone.js 0.15.0\n```\n\n### Anything else relevant?\n\nI managed to make it a little bit faster by disabling aot in development\n```\n\"development\": {\n \"optimization\": false,\n \"extractLicenses\": false,\n \"aot\":false,\n \"sourceMap\": true\n }\n```\nbut still a lot of people told that is not a solution but a workaround and it can hurt the project in the long term","author":{"url":"https://github.com/Oussemasahbeni","@type":"Person","name":"Oussemasahbeni"},"datePublished":"2024-12-04T08:13:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":19},"url":"https://github.com/59040/angular/issues/59040"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:115570d5-41df-0a1c-dde2-9da4ae435db1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B092:B4049:21683C9:2AE581A:6974ABFA |
| html-safe-nonce | 94670d5b6a4250b2f89ef3b259b23e2d0b438e5acaa2ec3fc6ac8d1541733dac |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDkyOkI0MDQ5OjIxNjgzQzk6MkFFNTgxQTo2OTc0QUJGQSIsInZpc2l0b3JfaWQiOiI0NTYxNDQ5MTY2NDE5ODMxODAyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d18d467c84d5dc4405a9d4b7059f107476944a740b58936fe151489578f20a76 |
| hovercard-subject-tag | issue:2717944027 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/59040/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9370881d6d255c1b45af2ee22dd4a8466bfad9de07ea4d54d0e972bb2bfd9890/angular/angular/issues/59040 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9370881d6d255c1b45af2ee22dd4a8466bfad9de07ea4d54d0e972bb2bfd9890/angular/angular/issues/59040 |
| og:image:alt | 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 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Oussemasahbeni |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width