I have a repository with storybook v6.4.19 installed. Everything worked until the storybook was updated to v7.4.5.
There are two components Sidebar and Loader. Sidebar has a redux decorator, Loader does not. When running storybook with the command npm run storybook and opening Sidebar.stories, the following error is displayed:
Describe the bug
I have a repository with storybook v6.4.19 installed. Everything worked until the storybook was updated to v7.4.5.
There are two components
Sidebar
andLoader
.Sidebar
has a redux decorator,Loader
does not. When running storybook with the commandnpm run storybook
and opening Sidebar.stories, the following error is displayed:Although Loader.stories displays normally.
To Reproduce
To reproduce the error, you need to add redux-toolkit^1.8.0, react-redux^7.2.6, storybook^7.4.5 to the project
Create a store and add
StoreDecorator
andStoreProvider
The redux decorator
StoreDecorator
looks like this:StoreProvider
looks like this:Sidebar.stories
component looks like this:System
Additional context
deps:
My repo with this bug is https://github.com/microlabig/storybook-test