profile
viewpoint

Ask questionsPeer dependency warnings

Currently I'm getting a bunch of warnings due to storybook when I install dependencies:

> yarn
yarn install v1.3.2
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning " > @storybook/addon-storyshots@3.2.15" has unmet peer dependency "@storybook/addons@^3.2.15".
warning " > @storybook/addon-storyshots@3.2.15" has unmet peer dependency "@storybook/channels@^3.2.15".
warning " > @storybook/addon-storyshots@3.2.15" has unmet peer dependency "babel-core@^6.26.0".
warning "@storybook/react > babel-preset-react-app@3.1.0" has unmet peer dependency "babel-runtime@^6.23.0".
warning "@storybook/react > @storybook/ui > react-komposer@2.0.0" has incorrect peer dependency "react@^0.14.7 || ^15.0.0".
warning "@storybook/react > @storybook/ui > mantra-core > react-komposer@1.13.1" has incorrect peer dependency "react@^0.14.3 || ^15.0.0".
warning "@storybook/react > @storybook/ui > mantra-core > react-simple-di@1.2.0" has incorrect peer dependency "react@^0.14.0 || ^15.0.0".
warning "@storybook/react > @storybook/ui > react-icons > react-icon-base@2.1.0" has unmet peer dependency "prop-types@*".
warning "@storybook/react > @storybook/ui > react-komposer > react-stubber@1.0.0" has incorrect peer dependency "react@^0.14.7 || ^15.0.0".

A few of these are due to react-komposer and react-simple-di not allowing React 16 as a peer dependency. These projects each have multiple open issues and PRs to fix these peer dependencies, but no one is responding; they seem to be unmaintained. Would it be possible to either transfer ownership of these projects under storybooks, or else inline needed functionality that they provide?

The others I'm not sure why they are necessary. Why do I need to add a dependency on babel-core, for example, when I used TypeScript exclusively and storybook functions just fine? Perhaps some of these things should just be dependencies/devDependencies rather than peerDependencies.

storybookjs/storybook

Answer questions Laslo89

it would be nice, if you could clean the peer dependencies again :) btw. i am not using react obviously

warning "@storybook/addon-a11y > @storybook/components@5.1.7" has unmet peer dependency "react-dom@*".
warning "@storybook/addon-a11y > @storybook/theming@5.1.7" has unmet peer dependency "react-dom@*".
warning "@storybook/addon-a11y > react-sizeme@2.6.7" has unmet peer dependency "prop-types@^15.0.0-0".
warning "@storybook/addon-a11y > react-sizeme@2.6.7" has unmet peer dependency "react-dom@^0.14.0 || ^15.0.0-0 || ^16.0.0".
warning "@storybook/addon-notes > markdown-to-jsx@6.10.2" has unmet peer dependency "react@>= 0.14.0".
warning "@storybook/addon-a11y > @storybook/api > @storybook/router@5.1.4" has unmet peer dependency "react-dom@*".
warning "@storybook/addon-a11y > @storybook/api > @storybook/router > @reach/router@1.2.1" has unmet peer dependency "react-dom@15.x || 16.x || 16.4.0-alpha.0911da3".
warning "@storybook/addon-a11y > @storybook/api > @storybook/theming@5.1.4" has unmet peer dependency "react-dom@*".
warning " > @storybook/addon-console@1.1.0" has unmet peer dependency "prop-types@*".
warning " > @storybook/addon-console@1.1.0" has unmet peer dependency "react@*".
warning " > @storybook/addon-knobs@5.1.7" has unmet peer dependency "react@*".
warning "@storybook/addon-knobs > react-select@2.4.4" has unmet peer dependency "react@^15.3.0 || ^16.0.0".
warning "@storybook/addon-knobs > react-select@2.4.4" has unmet peer dependency "react-dom@^15.3.0 || ^16.0.0".
warning "@storybook/addon-links > @storybook/router@5.1.7" has unmet peer dependency "react@*".
warning "@storybook/addon-links > @storybook/router@5.1.7" has unmet peer dependency "react-dom@*".
warning "@storybook/addon-knobs > react-color > @icons/material@0.2.4" has unmet peer dependency "react@*".
warning "@storybook/addon-knobs > react-select > react-input-autosize@2.2.1" has unmet peer dependency "react@^0.14.9 || ^15.3.0 || ^16.0.0-rc || ^16.0".
warning "@storybook/addon-knobs > react-select > react-transition-group@2.9.0" has unmet peer dependency "react@>=15.0.0".
warning "@storybook/addon-knobs > react-select > react-transition-group@2.9.0" has unmet peer dependency "react-dom@>=15.0.0".
warning " > @storybook/addon-links@5.1.7" has unmet peer dependency "react@*".
warning " > @storybook/addon-notes@5.1.7" has unmet peer dependency "react@*".
warning " > @storybook/addon-options@5.1.7" has unmet peer dependency "react@*".
warning " > @storybook/addon-viewport@5.1.7" has unmet peer dependency "react@*".
warning "@storybook/vue > @storybook/core@5.1.7" has unmet peer dependency "react@*".
warning "@storybook/vue > @storybook/core@5.1.7" has unmet peer dependency "react-dom@*".
useful!
source:https://uonfu.com/
answerer
Laslo89 Paessler AG Nuremberg, Germany
Github User Rank List