-
Notifications
You must be signed in to change notification settings - Fork 106
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
MDX transformation fails #13
Comments
Takk for sist! 😃 Is this with the latest version of Storybook (6.3-alpha-something) and the latest version of the builder? What about it is not working? MDX should at least work in development mode, I haven't checked the static build yet. I agree that the file sizes look pretty huge. Maybe the addon-docs component itself is pretty heavy? We should compare the numbers to the Webpack version, I'm not sure if the large bundle size is Vite's fault or not. |
Takk for sist ja, tiden flyr :)! It was just an observation, I have not checked what the expected size is yet - will check this soon. |
Hi, running the react example with a MDX story results in an empty Docs page and Here is a repo to reproduce: https://github.com/lmestel/storybook-builder-vite (with a Button.stories.mdx in the example-react package) |
I wonder if this could be related to Typescript-docgen-plugin or something like that? It's still missing in the Vite builder... (nobody has implemented it yet) |
There is code in the preview that sets up a react context called Unrelated to react-docgen-typescript-plugin AFAIK. Also we are thinking about getting rid of that and taking a different approach that is builder-agnostic -- not sure about the timeline on that though. cc @bebraw |
This should be fixed in the latest release (with Storybook 6.3.4 or newer) |
Running the code in the readme and then building the static version does not work out of the box.
Does output "unexpected" large output as well.
vs without the mdx file:
The text was updated successfully, but these errors were encountered: