angular / angular-cli

CLI tool for Angular
https://cli.angular.io
MIT License
26.76k stars 11.97k forks source link

Migration fails for Ng13 -> Ng14 (Incompatibility with yarn v3 with --force flag) #23495

Closed Lonli-Lokli closed 2 years ago

Lonli-Lokli commented 2 years ago

🐞 Bug report

Command (mark with an x)

Is this a regression?

No

Description

In the case when package manager is Yarn3 & there are Incompatible peer dependencies, migration fails for Ng13 -> Ng14 Looks like https://github.com/angular/angular-cli/issues/22048 has not been fully fixed.

πŸ”¬ Minimal Reproduction

1) Clone and switch to initial branch https://github.com/Lonli-Lokli/angular-cli-diff/tree/initial

2) Run npx ng update @angular/core@14 @angular/cli@14 --force

πŸ”₯ Exception or Error


> Update Angular packages 'dependencies' and 'devDependencies' version prefix to '^' instead of '~'.
UPDATE package.json (1484 bytes)
βœ– Package install failed, see above.
Γ— Migration failed. See above for further details.

🌍 Your Environment


Angular CLI: 13.3.8
Node: 14.18.2
Package Manager: yarn 3.2.1
OS: win32 x64

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

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1303.8
@angular-devkit/build-angular   13.3.8
@angular-devkit/core            13.3.8
@angular-devkit/schematics      13.3.8
@angular/cli                    13.3.8
@schematics/angular             13.3.8
rxjs                            7.5.5
typescript                      4.6.4

angular-automatic-lock-bot[bot] commented 2 years ago

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.