-
-
Notifications
You must be signed in to change notification settings - Fork 9.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
[Bug]: Cannot find module react-dom/test-utils #29269
Comments
Similar issue in // needs to be `react/jsx-runtime.js` in React 17
import { Fragment as b6, jsx as iu } from "react/jsx-runtime"; |
Do you a have a reproduction repo you can share? If not, can you create one? Go to https://storybook.new or see repro docs. Thank you! 🙏 |
Not yet. This is mostly react 17 vs 18 issue. Some of storybook dependency (radux-ui, and storybook/core) is using react 18 specific stuff. So it just won't work with react 17 out of the box. i.e. storybook 8.3 does not support react 17 anymore, unexpectedly. I can work around it by patching those two packages locally. |
Update: a simple repro doesn't repro the issue. Maybe also related to tsconfig. However, really not sure why not able to repro, as the import statement is pretty clear shouldn't work. |
Same error here! Just downgraded to 8.2.2 and everything works again! Maybe let's look into this error?? 😄 |
Describe the bug
When upgrading form storybook 8.2.6 to 8.3.4, I got this error.
It is caused by
@storybook/react/dist/chunk-OOL6AVF7.mjs
:I'm using React 17.
Reproduction link
TBD
Reproduction steps
No response
System
Additional context
No response
The text was updated successfully, but these errors were encountered: