Unmet peer dependency warnings for @storybook/addon-storyshots@6.2.9 when running `yarn install`
See original GitHub issueWhen running yarn install we are getting unmet peer dependency warnings:
warning "workspace-aggregator-... > ... > @storybook/addon-storyshots@6.2.9" has unmet peer dependency "svelte@*".
warning "workspace-aggregator-... > ... > @storybook/addon-storyshots@6.2.9" has unmet peer dependency "vue-jest@*".
warning "workspace-aggregator-... > ... > @storybook/addon-storyshots > react-test-renderer@17.0.2" has incorrect peer dependency "react@17.0.2".
We are using the following devDependencies in our repo:
"storybook": "^6.2.8",
"@storybook/addon-a11y": "^6.2.8",
"@storybook/addon-essentials": "^6.2.8",
"@storybook/addon-jest": "^6.2.8",
"@storybook/addon-links": "^6.2.8",
"@storybook/addon-storyshots": "^6.2.8",
"@storybook/react": "^6.2.8"
as well as dependencies:
"react": "^16.13.1",
"react-dom": "^16.13.1"
and also added "react-test-renderer": "^16.13.1"
to try resolve one of the warnings, which did not help.
Also, it is weird that it still asks forreact-test-renderer@17.0.2"
and "react@17.0.2"
, while "react-test-renderer": "^16.13.1"
and "react": "^16.13.1"
have been clearly met.
Surely, the option is to add all the above as devDependencies
of out package.json
, but I do not think it’s a viable option. There are similar issues that were discussed in yarn community https://github.com/yarnpkg/yarn/issues/5347
Would appreciate your advice on this, thanks!
Issue Analytics
- State:
- Created 2 years ago
- Reactions:10
- Comments:13 (8 by maintainers)
Top Results From Across the Web
What does 'has unmet peer dependency' mean when ...
To resolve this warning you should run yarn add <package> for each <package> that is complained about. Below is an example. Original output...
Read more >check-peer-dependencies | Yarn - Package Manager
It checks if you have installed a package that meets the required peer dependency versions. If any peer dependencies are unmet, it will...
Read more >styled-components@5.3.5" has unmet peer dependency ...
Simply installing Storybook HTML with the recommended method causes a ton of dependency warnings to be emitted every time the package manager (Yarn)...
Read more >Error npm UNMET PEER DEPENDENCY warning - Edureka
I'm on Windows 10, with Node 5.6.0 and npm 3.6.0. I'm trying to install angular- ... do I resolve this to get AngularJS...
Read more >[package] has unmet peer dependency - Notes and Anecdotes
I'll sometime see a warning telling me that a dependency (that I have installed) has an unmet peer dependency. I don't know what...
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
I tested npm@7.13.0 and it doesn’t even install
preact-render-to-string
cc @isaacs
preact-render-to-string
isn’t a peer dependency so it wouldn’t helpSure, I opened https://github.com/storybookjs/storybook/pull/14835 to deal with the dependencies that Storybook controls, not much can be done about the range specified by
react-test-renderer
here.