question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

6.5.0-alpha.58 - Can't resolve 'react-dom/client'

See original GitHub issue

Describe 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

image

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:closed
  • Created a year ago
  • Reactions:4
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

8reactions
shilmancommented, Apr 14, 2022

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!

npx sb upgrade --prerelease

Closing this issue. Please re-open if you think there’s still more to do.

2reactions
thibaudcolascommented, Jul 8, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found