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
An automigration that globs **/*.stories.mdx and returns the list of files
If the list is not empty, we prompt the user:
We've found ${files.length} '.stories.mdx' files in your project. Storybook has
upgraded to [MDX2](https://mdxjs.com/blog/v2/), which contains breaking changes from V1.
We can try to automatically upgrade your MDX files to MDX2 format using some common patterns. For a full guide for how to manually upgrade your files, see [MDX2 migration guide](https://mdxjs.com/migrating/v2/#update-mdx-files).
Do you want to run this automigration? [Y]n
Then, if the user responds yes, we run our set of heuristics, such as above ☝️ , on the set of files.
The following pattern, which we included in our
sb init
for MDX1, breaks in MDX2:This is documented as intended behavior in mdx-js/mdx#1945. The solution is to update this to:
We should create a migration path for users to help ease the transition:
.stories.mdx
files, looks for this pattern, and updatesThe text was updated successfully, but these errors were encountered: