Title: Running the optional angular build migration installs incompatible version of @angular/build · Issue #30696 · angular/angular-cli · GitHub
Open Graph Title: Running the optional angular build migration installs incompatible version of @angular/build · Issue #30696 · angular/angular-cli
X Title: Running the optional angular build migration installs incompatible version of @angular/build · Issue #30696 · angular/angular-cli
Description: Command update 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 Running the optional migration after skipping the build migra...
Open Graph Description: Command update 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 Running the optional ...
X Description: Command update 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 Running the optional ...
Opengraph URL: https://github.com/angular/angular-cli/issues/30696
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Running the optional angular build migration installs incompatible version of @angular/build","articleBody":"### Command\n\nupdate\n\n### Is this a regression?\n\n- [ ] Yes, this behavior used to work in the previous version\n\n### The previous version in which this bug was not present was\n\n_No response_\n\n### Description\n\nRunning the optional migration after skipping the build migration during initial update incorrectly installs @angular/build v20 which is not compatible\n\n### Minimal Reproduction\n\nhttps://github.com/simhnna/angular-build-migration-demo/tree/8971afceeaf60bbe9fff4c9a2777b7711dcb095f\n\nRun `ng update @angular/cli --name=use-application-builder`\n\n```\nThe installed Angular CLI version is outdated.\nInstalling a temporary Angular CLI versioned 20.1.0 to perform the update.\nUsing package manager: npm\nCollecting installed dependencies...\nFound 22 dependencies.\n** Executing 'use-application-builder' of package '@angular/cli' **\n\n❯ Migrate application projects to the new build system.\n Application projects that are using the '@angular-devkit/build-angular' package's 'browser' and/or 'browser-esbuild' builders will be migrated to use the new 'application' builder.\n You can read more about this, including known issues and limitations, here: https://angular.dev/tools/cli/build-system-migration\n The output location of the browser build has been updated from \"dist/project\" to \"dist/project/browser\". You might need to adjust your deployment pipeline or, as an alternative, set outputPath.browser to \"\" in order to maintain the previous functionality.\nUPDATE package.json (1032 bytes)\nUPDATE angular.json (2749 bytes)\n✔ Packages installed successfully.\n Migration completed (2 files modified).\n```\n\nIt installs [`@angular/build@20`](https://github.com/simhnna/angular-build-migration-demo/blob/main/package.json#L26) because it uses @angular/cli@20 to run the update \n\n### Exception or Error\n\n```text\n\n```\n\n### Your Environment\n\n```text\n_ _ ____ _ ___\n / \\ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|\n / △ \\ | '_ \\ / _` | | | | |/ _` | '__| | | | | | |\n / ___ \\| | | | (_| | |_| | | (_| | | | |___| |___ | |\n /_/ \\_\\_| |_|\\__, |\\__,_|_|\\__,_|_| \\____|_____|___|\n |___/\n \n\nAngular CLI: 18.2.20\nNode: 22.17.0\nPackage Manager: npm 10.9.2\nOS: linux x64\n\nAngular: 18.2.13\n... animations, common, compiler, compiler-cli, core, forms\n... platform-browser, platform-browser-dynamic, router\n\nPackage Version\n---------------------------------------------------------\n@angular-devkit/architect 0.1802.20\n@angular-devkit/build-angular 18.2.20\n@angular-devkit/core 18.2.20\n@angular-devkit/schematics 18.2.20\n@angular/cli 18.2.20\n@schematics/angular 18.2.20\nrxjs 7.8.2\ntypescript 5.4.5\nzone.js 0.14.10\n```\n\n### Anything else relevant?\n\n_No response_","author":{"url":"https://github.com/simhnna","@type":"Person","name":"simhnna"},"datePublished":"2025-07-10T10:44:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/30696/angular-cli/issues/30696"}
| 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:95dcb6fb-d88b-0c17-43b8-07c90459558d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 876A:D2AB1:B72584:F36EF8:6A62B79F |
| html-safe-nonce | 56b232b25d6bf289eb4869257aeab4fef182f5a8dde64c9a762499055ad58bb6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzZBOkQyQUIxOkI3MjU4NDpGMzZFRjg6NkE2MkI3OUYiLCJ2aXNpdG9yX2lkIjoiNjYzNjIwNDExNDU3NzYzNTIzMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5ed2acd3a14c2c3268282c691df67f96056efecc3f63dbad474726d7f5a7bd26 |
| hovercard-subject-tag | issue:3218826667 |
| 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-cli/30696/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8928273475ce32cc79eb9477a5e41b8548f0ec3a2e5836035537bc1c15c6ef64/angular/angular-cli/issues/30696 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8928273475ce32cc79eb9477a5e41b8548f0ec3a2e5836035537bc1c15c6ef64/angular/angular-cli/issues/30696 |
| og:image:alt | Command update 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 Running the optional ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | simhnna |
| hostname | github.com |
| expected-hostname | github.com |
| None | df33b1b61ee7b9a0af988199bfc3503c9c1acafb1f1d40e1f140ea7c84f890dd |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| 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 | d41cd1bdb290013455c0ac430fa755621733f5eb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width