-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Storybook React Webpack does not process .mdx files after update to 15.5.2 #14462
Comments
I'm experiencing the same thing. Downgrading to |
+1 encountered the same while looking at #14455. I had to remove the |
Ohhhh I see. Interesting. Ok that's something to look into. Still, can I have a repro repo with mdx, and I'll make sure I'll fix these tomorrow! Sorry folks! |
Hey @mandarini. The project I'm sitting with can't be shared, so creating a sharable reproduction would sadly require some work :) |
@mthines no, it's not included in a patch yet, I just pushed this PR. I will post here once it's in a patch. Regarding the reproduction, I just meant like a super simple repository with Storybook and a simple mdx story that works. Take your time, let me know! :) |
@mandarini sure! |
Hey @mandarini . Okay, it was fairly quickly 😂 Here you go To reproduce. npm install
npx nx run nx-storybook-mdx-issue:storybook To me this looks like a classic Webpack Loader issue with the file extension not being recognized and therefore not handled correctly. Let me know if I can help with anything! 💪 And thank you for you guys awesome work with NX ❤️ |
Adding Also works if
|
I found the problem. Because in 15.5 we provided defaults for the CLI options, it is being set to We just need remove the default and let Storybook apply its own defaults. :) |
@jaysoo |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
Storybook can not be build if project has MDX stories:
The same setup was working on older Nx
15.4.1
.Expected Behavior
NX Storybook plugin should process .mdx files with no issues.
Github Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
No response
Additional Information
Root Storybook config:
App Storybook config:
Storybook tsconfig:
The text was updated successfully, but these errors were encountered: