-
-
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
MDX error: Support for the experimental syntax 'jsx' isn't currently enabled #11439
Comments
There are two workarounds for this issue. For React projects (e.g. CRA) that have the following line in their module.exports = {
addons: [
'@storybook/addon-docs'
]
}; Update to: module.exports = {
addons: [
{
name: '@storybook/addon-docs',
options: { configureJSX: true }
}
]
}; If you use For now, the workaround is to rewrite those fragments as We're working on:
|
Olé!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.0.0-beta.45 containing PR #11448 that references this issue. Upgrade today to try it out! You can find this prerelease on the Closing this issue. Please re-open if you think there's still more to do. |
This is to fix this error, introduced by Babel: storybookjs/storybook#11439 (comment)
This is to fix this error, introduced by Babel: storybookjs/storybook#11439 (comment)
This is to fix this error, introduced by Babel: storybookjs/storybook#11439 (comment)
Yay!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.3.20 containing PR #11448 that references this issue. Upgrade today to try it out! |
A recent change in
babel
has broken Storybook's MDX configuration in CRA, with the error:Support for the experimental syntax 'jsx' isn't currently enabled
.More info here: #11422 (comment)
This is reproducible in a fresh CRA install, and the problem is present on both
next
andlatest
branches, unrelated to any code changes on our side.cc @tooppaaa @ndelangen
The text was updated successfully, but these errors were encountered: