addon-development-kit icon indicating copy to clipboard operation
addon-development-kit copied to clipboard

🐞 Peer Dependencies do not support Storybook 6 and React 17

Open siiiiilvio opened this issue 4 years ago • 1 comments

I've been using your package with Storybook 6 and React 17 with no issues. However NPM 7 will not allow installation without passing the --force or --legacy-peer-depsflag because of these missing Peer Dependencies.

siiiiilvio avatar Apr 06 '21 20:04 siiiiilvio

Over 6 months, still not addressed.

warning "@react-theming/storybook-addon > @storybook/[email protected]" has incorrect peer dependency "@storybook/addons@^5.0.0".
warning "@react-theming/storybook-addon > @storybook/[email protected]" has incorrect peer dependency "@storybook/react@^5.0.0".
warning "@react-theming/storybook-addon > @storybook/[email protected]" has incorrect peer dependency "react@^16.0.0".
warning "@react-theming/storybook-addon > @storybook/[email protected]" has incorrect peer dependency "react-dom@^16.0.0".

In addition, @reach/[email protected] needs to be upgraded to 0.16.0 which will handle the following warnings.

warning "@react-theming/storybook-addon > @storybook/addon-devkit > @reach/[email protected]" has incorrect peer dependency "react@^16.8.0".
warning "@react-theming/storybook-addon > @storybook/addon-devkit > @reach/[email protected]" has incorrect peer dependency "react-dom@^16.8.0".

Also here, a version of @reach/rect isn't specified so it's being loaded twice.

warning "@react-theming/storybook-addon > @storybook/addon-devkit > @reach/rect > @reach/[email protected]" has incorrect peer dependency "react@^16.4.0".
warning "@react-theming/storybook-addon > @storybook/addon-devkit > @reach/rect > @reach/[email protected]" has incorrect peer dependency "react-dom@^16.4.0".

CWSites avatar Oct 27 '21 14:10 CWSites