question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to upgrade from Angular 7 -> 8 with the Angular CLI due to zone.js dependency

See original GitHub issue

Describe 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:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
shilmancommented, Jun 3, 2019

Not a dupe. Reopening. 😭

0reactions
shilmancommented, Jun 4, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found