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
Open "Buttons documentation" doc in the preview pane
Open src/stories/Button.stories.tsx file
Duplicate e.g. the Secondary story and rename it to e.g. Tertiary
Expected behavior:
The doc is still rendered correctly.
Actual behavior:
The error mentioned above it thrown.
System
I'm not sure how to run `npx storybook@latest info` on StackBlitz, as the terminal does not seem to work for me. I am using the React 18 Webpack template, which uses Storybook 8.4.0-alpha.0.
Additional context
It makes writing documentation using MDX files a bit frustrating ;)
The text was updated successfully, but these errors were encountered:
Describe the bug
When adding a new story to a stories file that is imported in a .mdx file, the following error is thrown:
It happens when the imported story files is modified in other ways as well, but this is the most simple case to replicate this bug.
Reproduction link
https://stackblitz.com/edit/github-unrkza-3cuztn?file=src%2Fstories%2FButton.stories.ts
Reproduction steps
src/stories/Button.stories.tsx
fileSecondary
story and rename it to e.g.Tertiary
Expected behavior:
The doc is still rendered correctly.
Actual behavior:
The error mentioned above it thrown.
System
I'm not sure how to run `npx storybook@latest info` on StackBlitz, as the terminal does not seem to work for me. I am using the React 18 Webpack template, which uses Storybook 8.4.0-alpha.0.
Additional context
It makes writing documentation using MDX files a bit frustrating ;)
The text was updated successfully, but these errors were encountered: