6.5.0-alpha.58 - Can't resolve 'react-dom/client'
See original GitHub issueDescribe the bug
Apparently after upgrading to 6.5.0-alpha.60
(from 55
) I am getting this error (in the terminal)
Can’t resolve ‘react-dom/client’
react-dom/client
is a new path exists only in react-dom
v18, AFAIK
Traced it down to this potential line which was added recently: https://github.com/storybookjs/storybook/pull/17215/files#diff-4ff35b6b89e790db308e2624d4187ab9a4cbc01bb54f92c0a0095f7b11a01189R10
To Reproduce
I am using react
& react-dom
17.0.2
And Webpack v5 & Windows 10
Minimal reproducible demo:
https://github.com/yairEO/sb-issue--react-client
(Getting the error on Windows 10) using npm
to install dependencies
Issue Analytics
- State:
- Created a year ago
- Reactions:4
- Comments:13 (8 by maintainers)
Top Results From Across the Web
Module not found: Error: Can't resolve 'react-dom/client'
The react-dom/client thing is new in v18. Your package.json has you using v17. If you upgrade to v18.0.0, the error should go away....
Read more >can't resolve 'react-dom/client' - You.com | The AI Search ...
Issue is react-dom is not installed, when you hit npm -v react-dom , it gives you the version of npm not react-dom version,...
Read more >[Solved] Module not found: Error: Can't ... - DEV Community
This issue's resolution called for having to make the following modifications to the index.js file: import React from 'react'; // import ...
Read more >Changelog - Cypress Documentation
Added react-dom as a required dependency when setting up a React project for ... tests would unexpectedly fail with a "Can't resolve 'async_hooks'"...
Read more >@storybook/react | Yarn - Package Manager
Storybook for React: Develop React Component in isolation with Hot Reloading. storybook. readme. Storybook. Build bulletproof UI components faster. Build Status ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Great Caesar’s ghost!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.5.0-alpha.63 containing PR #17946 that references this issue. Upgrade today to the
@next
NPM tag to try it out!Closing this issue. Please re-open if you think there’s still more to do.
I’m running into this as well and have opened #18662 with a description of the specific issue and what I’ve done to work around it.