Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Peer dependency failure with beta storybook #25

Closed
IanVS opened this issue May 28, 2021 · 0 comments · Fixed by #26
Closed

Peer dependency failure with beta storybook #25

IanVS opened this issue May 28, 2021 · 0 comments · Fixed by #26

Comments

@IanVS
Copy link
Member

IanVS commented May 28, 2021

Describe the bug

I am using storybook @ 6.3.0-beta.2, and when trying to install @storybook/testing-react with npm 7 I get the following:

pm ERR! Found: @storybook/[email protected]
npm ERR! node_modules/@storybook/addons
npm ERR!   dev @storybook/addons@"^6.3.0-beta.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @storybook/addons@"^6.0.0" from @storybook/[email protected]
npm ERR! node_modules/@storybook/testing-react
npm ERR!   dev @storybook/testing-react@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

To Reproduce
Steps to reproduce the behavior:
Install storybook beta version, use npm 7, try to install @storybook/testing-react.

Expected behavior
It should install successfully.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
I propose setting the peer dependency ranges as loosely as possible, perhaps:

  "peerDependencies": {
    "react": ">=16.8.0",
    "@storybook/react": ">=6.0.0",
    "@storybook/addons": ">=6.0.0",
    "@storybook/client-api": ">=6.0.0"
  },
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant