You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Encountered an import error when adding a second storybook config with --story-format mdx to an existing storybook react installation.
To Reproduce
Steps to reproduce the behavior:
npx create-react-app my-app
cd my-app
npx sb init
mkdir nested-config
cd nested-config
npx sb init -s -t react --story-format mdx
cd ..
yarn storybook -c nested-config/.storybook
See Error: Element type is invalid
Expected behavior
Storybook to start without errors
Additional context
This error was originally encountered in the context of a production monolith managed by a large team. The create-react-app example is provided to reproduce the error.
Describe the bug
Encountered an import error when adding a second storybook config with
--story-format mdx
to an existing storybook react installation.To Reproduce
Steps to reproduce the behavior:
npx create-react-app my-app
cd my-app
npx sb init
mkdir nested-config
cd nested-config
npx sb init -s -t react --story-format mdx
cd ..
yarn storybook -c nested-config/.storybook
Element type is invalid
Expected behavior
Storybook to start without errors
Screenshots
System:
Additional context
This error was originally encountered in the context of a production monolith managed by a large team. The
create-react-app
example is provided to reproduce the error.There is a bug fix for the import error in #12252
The text was updated successfully, but these errors were encountered: