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.

Peer dependency warning for Storybook Angular.

See original GitHub issue

Describe the bug Why do I get these warnings on Yarn install. I am trying to use storybook for angular app.

warning " > @storybook/addon-actions@4.0.8" has unmet peer dependency "react@*".
warning "@storybook/addon-actions > @emotion/core@0.13.1" has unmet peer dependency "react@>=16.3.0".
warning "@storybook/addon-actions > @emotion/provider@0.11.2" has unmet peer dependency "react@>=16.3.0".
warning "@storybook/addon-actions > @storybook/components@4.0.8" has unmet peer dependency "react@*".
warning "@storybook/addon-actions > @storybook/components@4.0.8" has unmet peer dependency "react-dom@*".
warning "@storybook/addon-actions > react-inspector@2.3.0" has unmet peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0".
warning "@storybook/addon-actions > @emotion/styled > @emotion/styled-base@0.10.6" has unmet peer dependency "react@>=16.3.0".
warning "@storybook/addon-actions > @storybook/components > react-textarea-autosize@7.0.4" has unmet peer dependency "react@>=0.14.0 <17.0.0".
warning "@storybook/addon-actions > @storybook/components > render-fragment@0.1.1" has unmet peer dependency "react@^15.0.0 || ^16.0.0".
warning " > @storybook/addon-backgrounds@4.0.8" has unmet peer dependency "react@*".
warning " > @storybook/addon-jest@4.0.8" has unmet peer dependency "react@*".
warning " > @storybook/addon-knobs@4.0.8" has unmet peer dependency "react@*".
warning " > @storybook/addon-links@4.0.8" has unmet peer dependency "react@*".
warning " > @storybook/addon-notes@4.0.8" has unmet peer dependency "react@*".
warning " > @storybook/addon-options@4.0.8" has unmet peer dependency "react@*".
warning "@storybook/addon-storyshots > jest-specific-snapshot@1.0.0" has unmet peer dependency "jest@*".
warning " > @storybook/addon-storysource@4.0.8" has unmet peer dependency "react@*".
warning "@storybook/addon-storysource > react-syntax-highlighter@10.1.1" has unmet peer dependency "react@>= 0.14.0".

Do I need to provide react libs in my package.json?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:3
  • Comments:21 (9 by maintainers)

github_iconTop GitHub Comments

5reactions
cguilhermefcommented, Oct 22, 2020

There is a workaround to suppress this huge bunch of warnings? I’m working with Angular, in an NX workspace.

3reactions
shilmancommented, Jan 21, 2020

@Roen00 no need to worry about these issues. At some point we’ll need to do a refactor to address this, but it’s low on our priorities.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I fix the npm UNMET PEER DEPENDENCY ...
UNMET PEER DEPENDENCY error is thrown when the dependencies of one or more modules specified in the package.
Read more >
you must install peer dependencies yourself Code Example
npm WARN codelyzer@6.0.1 requires a peer of tslint@^5.0.0 || ^6.0.0 but none is installed. You must install peer dependencies yourself. typescript by devops ......
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 >
Upgrading Angular versions has to be the most frustrating ...
You can use the '--force' option to ignore incompatible peer dependencies and instead address these warnings later. See "/private/var/folders/vw ...
Read more >
@storybook/angular versions and peer dependencies
@storybook/angular versions and peer dependencies · @angular/common @ >=4.0.0 · @angular/compiler @ >=4.0.0 · @angular/core @ >=4.0.0 · @angular/platform-browser @ ...
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