-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] ERESOLVE - peer dependency conflicts by packages which should get replaced #8059
Comments
Related issue: storybookjs/storybook#30306 |
Why are the versions pinned instead of using ^? |
The initial package.json example doesn’t has the caret, because then the reproduction for sure doesn’t work, since 8.5.1 would be installed initially. I just wanted to simulate an upgrade scenario. |
What happens if, instead of manually editing package.json, you let |
Running npm install --legacy-peer-deps and then remove node modules then npm install it will updated to latest. there is no conflicts between the packages if we run npm install --legacy-peer-deps and npm install doesnot fail |
I'm not sure why |
Right. We at Storybook used legacy-peer-deps in the past and we don’t want to get back to it. We would like to understand what’s exactly wrong with the dep graph. |
I will try it! |
@ljharb I've tried For context: If I install the packages in 8.5.1 from scratch, I don't get any errors, and npm can install the packages. |
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
I have the following package.json structure:
Running
npm install
correctly installs all packages. I want to update now manually the packages to their latest version8.5.1
.When I run
npm install
, I get the following error message:I would appreciate any help. We have been debugging this for a long time, and we already cleaned up our peer-dependencies and transitive peer-dependencies so that they are correctly declared. But currently, we don't know how to continue.
npm
is also the only package manager that fails.Expected Behavior
npm install doesn't fail after package update
Steps To Reproduce
npm install
8.5.1
:npm install
Above error appears
Context:
"@storybook/[email protected]" has a peer dependency on
storybook@^8.5.1
"@storybook/[email protected]" has a peer dependency on
storybook@^8.5.1
and@storybook/[email protected]
Environment
The text was updated successfully, but these errors were encountered: