-
-
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
addon-docs 5.3.21 - react 17 - pragma and pragmaFrag cannot be set when runtime is automatic. #13422
Comments
You need to upgrade to 6.1
|
I have been holding off on that due to all the Core js issues on projects with core js 2, etc. I think I can patch the webpack injected Babel loader. Once the new patch is released for the sb issues I will definitely try it. |
What patch are you referring to? |
Hello, I'm running into this issue using:
when running snapshot-test for the first time with:
producing
|
I bumped into this when running my tests. It started occurring also after adding snapshot tests to my CRA build. Also
Workaround: Disable the "new" jsx transform by adding the DISABLE_NEW_JSX_TRANSFORM flag to
|
The above doesn't work unless you are using create-react-app. It looks like this bug completely breaks addon-docs? This should probably get fixed? |
This is still happening in 6.5.16 |
Can someone provide a reproduction for Storybook 7.x? |
Hi there! Thank you for opening this issue, but it has been marked as |
I'm afraid we need to close this issue for now, since we can't take any action without the requested reproduction or additional information. But please don't hesitate to open a new issue if the problem persists – we're always happy to help. Thanks so much for your understanding. |
Describe the bug
A clear and concise description of what the bug is.
I upgraded a project to react 17, and when I start storybook(5.3.21) I get the following only on
mdx
files:To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Code snippets
If applicable, add code samples to help explain your problem.
it seems to be with this part of the webpack config:
System
Please paste the results of
npx sb@next info
here.Environment Info:
System:
OS: macOS 10.15.7
CPU: (8) x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
Binaries:
Node: 14.12.0 - ~/.nvm/versions/node/v14.12.0/bin/node
Yarn: 1.22.5 - ~/.yarn/bin/yarn
npm: 6.14.8 - ~/.nvm/versions/node/v14.12.0/bin/npm
Browsers:
Chrome: 87.0.4280.88
Edge: 87.0.664.57
Firefox: 80.0
Safari: 14.0.1
npmPackages:
@storybook/addon-a11y: 5.3.21 => 5.3.21
@storybook/addon-actions: 5.3.21 => 5.3.21
@storybook/addon-console: ^1.2.2 => 1.2.2
@storybook/addon-docs: 5.3.21 => 5.3.21
@storybook/addon-knobs: 5.3.21 => 5.3.21
@storybook/addon-links: 5.3.21 => 5.3.21
@storybook/addon-storysource: 5.3.21 => 5.3.21
@storybook/addon-viewport: 5.3.21 => 5.3.21
@storybook/addons: 5.3.21 => 5.3.21
@storybook/react: 5.3.21 => 5.3.21
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: