-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Unable to migrate MDX stories to Storybook 7 #22885
Comments
is there anyway to fix this? |
I encountered the same (or similar) issue upgrading from running
shows this error in console when I try to access the storybook link for that mdx file
UpdateIt seems the error I'm facing got introduced in #24166 - it works fine if I use Update 2I had a bit of a mess on my storybook dependencies. This fixed it for me diff --git a/package.json b/package.json
--- a/package.json (revision 959784332c9d9d377cbda65e002baaf893b9ab0e)
+++ b/package.json (date 1697751750935)
@@ -19,15 +19,11 @@
"@semantic-release/changelog": "6.0.2",
"@semantic-release/error": "3.0.0",
"@semantic-release/git": "10.0.1",
- "@storybook/addon-actions": "7.5.1",
- "@storybook/addon-docs": "7.5.1",
"@storybook/addon-essentials": "7.5.1",
"@storybook/addon-interactions": "7.5.1",
"@storybook/addon-links": "7.5.1",
- "@storybook/addons": "7.5.1",
- "@storybook/components": "7.5.1",
- "@storybook/core-events": "7.5.1",
- "@storybook/node-logger": "7.5.1",
+ "@storybook/blocks": "7.5.1",
+ "@storybook/manager-api": "7.5.1",
"@storybook/react": "7.5.1",
"@storybook/react-vite": "7.5.1",
"@storybook/theming": "7.5.1",
@@ -66,7 +62,7 @@
"storybook": "7.5.1",
"tsup": "7.2.0",
"typescript": "5.2.2",
- "vite": "4.4.9",
+ "vite": "4.5.0",
"vite-plugin-tsconfig-paths": "1.3.1",
"webpack": "5.88.2"
}, |
If anyone here could create a minimal reproduction that demonstrates this behavior it would be great. You can create a StackBlitz project at storybook.new and link to it. You can also create a minimal sandbox locally, see repro docs. Thank you! 🙏 |
It's been a while since I've tried, but I thought I'd try again with the most recent version of Storybook, and it miraculously works now. |
I'm experiencing the same issue that @csantos1113 after upgrading Storybook from v7.3.2 to v7.5.x |
Here is a link to repro the issue for my project. During the migration process a function of In the above example if you comment out the |
This fixed the issue for me, I just removed the |
In my case, updating |
I think this discussion is related. A repro was linked in the comments there. I'm also seeing this in my Qwik framework plugin repo whenever I update past 7.5.0. Here's a repro (run |
Hi there! Thank you for opening this issue, but it has been marked as |
@literalpie thanks so much for the reproduction. the problem is that your monorepo is using an older version of You can see this by running the following in your project:
When I nuke the lockfiles and restart, it works again. |
I can confirm making sure deps are in sync fixed it. Thank you! |
Describe the bug
Hello! I'm attempting to migrate over to Storybook v7 and I'm having issues building with standalone/unattached Mdx files. I've tried all different versions of suggested syntaxes in the documentation, including the suggestion that you can drop the
Meta
tag completely.Could you point me in the right direction?
Console output
npm run storybook
To Reproduce
The following
Test.mdx
reproduces the error.Test.mdx
# Test.mdx This is a test file.
System
Additional context
No response
The text was updated successfully, but these errors were encountered: