This is a dummy project to help with debugging a compatibility issue between storybook@4.1.x 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.0depended onreact-treebeard@^3.1.0β as soon asreact-treebeardreleased version3.2.0, storybook v4 started to break when using it.@storybook/ui@4.1.18solved the problem by explicitly pinningreact-treebeardto version3.1.0.@storybook/ui@^5.0.0no 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 installnpm run storybook
Once storybook starts and opens, the page will be blank and browser console will have several error messages.
- Stop storybook.
- Edit
package.jsonand change@storybook/reactto version4.1.18(which brings inreact-treebeard@3.1.0). npm installnpm run storybook
Storybook should open and run as expected.