Replies: 2 comments 2 replies
-
@tmeasday as contributor of that function, I don't know if you could help us? |
Beta Was this translation helpful? Give feedback.
1 reply
-
I'm trying to update to Storybook 9 and am having similar errors that suggest something's expecting React 18, but I'm still stuck on 17:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I can't tell yet if it has to be considered as an issue so i ask a question.
I'm running into an issue where webpack compilation throwing an error
Module not found: Error: Can't resolve 'react-dom/client' in /node_modules/.pnpm/@storybook+react-dom-shim@8.0.6_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/react-dom-shim/dist/react-18.mjs 2:0-40
I'm on React 17 and react-dom 17 at the root of my project. If i understood correctly the code from react-dom-shim (Repo), and the comment line 5,
on React 17 i should fall back to the file (react-16.tsx) which points to the former API 'import ReactDOM from 'react-dom';
However it is not the case, it points to react-18.mjs which calls the latest API of react-dom making the webpack compilation fails
Any suggestions to where to look at to get this solved ?
Additional information
The project is to update to Storybook 8 and the compilation error is thrown when starting cypress which is compiling some storybook stories. All dependencies were moved to 8.0.6. I'm webpack 5
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions