@storybook/addon-docs Unable to parse *.stories.mdx file #34657
Replies: 1 comment
-
|
The
An automatic migration codemod is available [2]: npx storybook@latest migrate mdx-to-csf --glob "src/**/*.stories.mdx"This will split each stories: [
'../src/**/*.mdx',
'../src/**/*.stories.@(js|jsx|ts|tsx)',
],Could you share which version of Storybook you're using? If you're on a version older than 9.x, please upgrade to the latest 9.x and retest — along with running the migration codemod above. A minimal reproduction repo would also help if the issue persists after migrating. To reply, just mention @dosu. Share context across your team and agents. Try Dosu. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
when the mdx file name is
*.stories.mdx,the webpack will parsing error. When I change the files name to*.mdxor*.abc.mdx, it resolves correctly.Additional information
No response
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions