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
Unexpected default export without title in './button/src/__stories__/button.story.mdx': undefined
Error: Unexpected default export without title in './button/src/__stories__/button.story.mdx': undefined
at http://localhost:9001/vendors~main.954b1eeae3d5e00c33c9.bundle.js:14333:17
at Array.forEach ()
at http://localhost:9001/vendors~main.954b1eeae3d5e00c33c9.bundle.js:14325:18
at render (http://localhost:9001/vendors~main.954b1eeae3d5e00c33c9.bundle.js:6998:13)
at ConfigApi.configure (http://localhost:9001/vendors~main.954b1eeae3d5e00c33c9.bundle.js:7030:9)
at load (http://localhost:9001/vendors~main.954b1eeae3d5e00c33c9.bundle.js:14392:15)
at load (http://localhost:9001/vendors~main.954b1eeae3d5e00c33c9.bundle.js:15586:19)
at Module. (http://localhost:9001/main.954b1eeae3d5e00c33c9.bundle.js:40:62)
at Module../.storybook/config.js (http://localhost:9001/main.954b1eeae3d5e00c33c9.bundle.js:41:30)
at __webpack_require__ (http://localhost:9001/runtime~main.954b1eeae3d5e00c33c9.bundle.js:786:30)
This fails because the preset only applies to .stories.mdx files and the user named his files .story.mdx.
Options:
Update documentation
Add .story.mdx support to preset
???
The text was updated successfully, but these errors were encountered:
I got tripped up on this because I thought the require.conext call in .storybook/config.js applied to this and I had configured it to something completely different:
We have an existing codebase that uses a monorepo and has examples/** for stories that don't have .stories (or .story) before the .js or .mdx suffix. Renaming my MDX docs pages to .story.mdx worked.
I assume this is intentional? Could the require.context call also apply to DocsPages?
E.g. in hastebrot/lerna-starter@76d3e4e
This fails because the preset only applies to
.stories.mdx
files and the user named his files.story.mdx
.Options:
.story.mdx
support to presetThe text was updated successfully, but these errors were encountered: