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
Run /Users/valentinpalkovic/Projects/storybook-next/code/lib/cli/bin/index.js migrate mdx-to-csf --glob "**/*.stories.mdx"
Two files are generated: introduction.mdx and introduction.stories.ts are generated. introduction.stories.ts doesn't have valuable content though. The introduction.mdx file references a non-existent component in its <Meta ... /> definition.
Acceptance criteria
The codemod should not generate *.stories.ts files, if a component doesn't exist
The <Meta ... /> definition inside the generated *.mdx file should not reference a component that doesn't exist.
The text was updated successfully, but these errors were encountered:
valentinpalkovic
changed the title
[Bug]: Codemod mdx-to-csf wrongly generates empty story files
[Bug]: The codemod mdx-to-csf wrongly generates empty story files
Feb 22, 2024
The
mdx-to-csf
codemod transforms the standard Storybook 6.5 introduction.stories.mdx file to two files:The
introduction.stories.ts
doesn't have any component defined so it is obsolete.Reproduction
/tools/ui-components
/Users/valentinpalkovic/Projects/storybook-next/code/lib/cli/bin/index.js migrate mdx-to-csf --glob "**/*.stories.mdx"
introduction.mdx
andintroduction.stories.ts
are generated.introduction.stories.ts
doesn't have valuable content though. Theintroduction.mdx
file references a non-existent component in its<Meta ... />
definition.Acceptance criteria
<Meta ... />
definition inside the generated *.mdx file should not reference a component that doesn't exist.The text was updated successfully, but these errors were encountered: