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
While trying to use lazy compilation after configuring both webpack5 and Storybook 6.5.9 storybook is loading sidebar correctly, however when I try to navigate to any story, I'm getting the error below.
Cannot find module './src/stories/Accordion.story.mdx'
Error: Cannot find module './src/stories/Accordion.story.mdx'
at webpackEmptyContext (http://localhost:9001/main.iframe.bundle.js:10:10)
at http://localhost:9001/main.iframe.bundle.js:383:87
It only appears when storyStoreV7: true in my main.js
I was able to fix the same issue by adding babelModeV7: true to features flags. But it's not stated anywhere in the storybook docs. Could we consider adding it?
UPD: also you need to provide your own babel config, if babelModeV7 is set to true
This worked for me (as an example)
We’re cleaning house! Storybook has changed a lot since this issue was created and we don’t know if it’s still valid. Please open a new issue referencing this one if:
Describe the bug
While trying to use lazy compilation after configuring both webpack5 and Storybook 6.5.9 storybook is loading sidebar correctly, however when I try to navigate to any story, I'm getting the error below.
It only appears when
storyStoreV7: true
in my main.jsTo Reproduce
main.js
webpack.config (same for ui lib and storybook itself)
our ui lib's package.json
Storybook's package.json
babel.config.js (same for ui lib and storybook)
node console output
browser console output
System
Additional context
It only appears when
storyStoreV7: true
in my main.jsThe text was updated successfully, but these errors were encountered: