This is a dummy project to help with debugging a compatibility issue between [email protected]
and treebeard@^3.2.x
:
It is a default project created via @storybook/cli sb init
, with all storybook versions locked to 4.1.16
.
@storybook/ui@^4.0.0
depended onreact-treebeard@^3.1.0
— as soon asreact-treebeard
released version3.2.0
, storybook v4 started to break when using it.@storybook/[email protected]
solved the problem by explicitly pinningreact-treebeard
to version3.1.0
.@storybook/ui@^5.0.0
no longer depends onreact-treebeard
, so this only affects the v4 branch (which is still heavily used).
(This was previously in a proper repository on GitHub, but I got sick of the repetitive security notifications about outdated packages. Obviously I’m not going to update them, so I moved the example over to a gist instead.)
- Download this gist:
- Either use the “Download Zip” button, or…
- Clone it using
git clone https://gist.github.com/gilmoreorless/59d072d95f93f3d327f86aced783a1f5
npm install
npm run storybook
Once storybook starts and opens, the page will be blank and browser console will have several error messages.
- Stop storybook.
- Edit
package.json
and change@storybook/react
to version4.1.18
(which brings in[email protected]
). npm install
npm run storybook
Storybook should open and run as expected.