Unable to upgrade from Angular 7 -> 8 with the Angular CLI due to zone.js dependency
See original GitHub issueDescribe the bug
Upgrading from Angular 7 to Angular 8 via the CLI won’t proceed due to @storybook/angular
’s zone.js peerDependency.
To Reproduce
yarn global add @angular/cli@^7 @storybook/cli
ng new ng8-upgrade-sb
cd ng8-upgrade-sb
sb init
ng update @angular/cli @angular/core
Output:
Package "@storybook/angular" has an incompatible peer dependency to "zone.js" (requires "^0.8.27", would install "0.9.1").
Incompatible peer dependencies found. See above.
And the upgrade stops.
I’d imagine that the zone.js peerDependency
just needs to be bumped: https://github.com/storybookjs/storybook/blob/8fef8f408f52105f4c48a13d61ab2df2e068080e/app/angular/package.json#L54
Expected behavior The upgrade should complete.
System:
- OS: Linux
- Framework: angular
- Version: 5.0.11
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:6 (4 by maintainers)
Top Results From Across the Web
How to Upgrade Angular 7 to Angular 13
You can add a --force to the upgrade command. Then it will ignore all these incompatible peer dependencies. You can then try to...
Read more >How To Update Angular CLI To Latest Version
To update Angular CLI version in your local projects use the following commands. Navigate to your local Angular project folder and execute the ......
Read more >Upgrading from AngularJS to Angular
One of the keys to a successful upgrade is to do it incrementally, by running the two frameworks side by side in the...
Read more >Upgrade From Angular 7 to Angular 8 in 10 Minutes
You should have installed version 3.3+, TypeScript 3.1 and 3.2 are no longer supported. Added TypeScript as a peer dependency by adding the...
Read more >Upgrade to Angular 14
Updating Angular CLI to v14 and upgrading your project to Angular 14 framework from previous versions (Angular 13) is easier than ever ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Not a dupe. Reopening. 😭
Ermahgerd!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.1.0-rc.5 containing PR #6957 that references this issue. Upgrade today to try it out!
Because it’s a pre-release you can find it on the
@next
NPM tag.Closing this issue. Please re-open if you think there’s still more to do.