Replication repo for storybook peer dependency issue
In it's current state with react
and react-dom
marked as dependencies this will cause a broken package tree, perform the following steps:
-
Install npm@7
npm i -g npm@7
-
Checkout the code.
-
Perform an install
npm install
. -
Check the
node_modules
and expand the@storybook
folder. Note thataddon-docs
is not installed there. -
Remove
react
andreact-dom
as dependencies inpackage.json
. -
Delete
package-lock.json
and delete thenode_modules
folder. -
Perform another install
npm install
. -
Check the
node_modules
and expand the@storybook
folder. Note thataddon-docs
now exists and is installed. -
Add
react
andreact-dom
back as dependencies. -
Delete
package-lock.json
and delete thenode_modules
folder. -
Repeat step 3 and 4.