-
-
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
@storybook/react 6.5.5 react 18 support #18349
Comments
i am getting 'react-refresh' module not found issue. i upgraded to react 18 and storybook to 6.5.6. is there any dependency missing? Environment Info:
|
I had the same issue, but got it fixed by deleting |
Updates answers-headless-react to the alpha version that announces react 16.14 support. Update unit tests to run in react 17 + 16 + 18. I tried to upgrade the lib to use react 18 as as a dev dep, but we still have a few dependencies that don't allow for 18 like storybook/react. I opened up an issue for that particular one, since I believe it's the only one. storybookjs/storybook#18349 (comment) J=SLAP-2113 TEST=manual,auto run test-site with react 16, check dev tools to see it is using react-dom 16.14 update unit tests to run in react 16 and 17
Updates answers-headless-react to the alpha version that announces react 16.14 support. Update unit tests to run in react 16 in addition to 17. I tried to upgrade the lib to use react 18 as as a dev dep, but we still have a few dependencies that don't allow for 18 like storybook/react. I opened up an issue for that particular one, since I believe it's the only one. storybookjs/storybook#18349 (comment) J=SLAP-2113 TEST=manual,auto run test-site with react 16, check dev tools to see it is using react-dom 16.14 update unit tests to run in react 16
same issue here. https://github.com/algolia/react-element-to-jsx-string/releases/tag/v15.0.0 seems to fix the issue. |
Also the storyshots plugin hasn't been updated to support React 18 yet:
When running storyshots with React 18 I'm currently seeing this error:
|
please, help! I have a react project, I recently updated react to version 18. When I ran stories, I got an error about the deprecated renderDom method. I updated my packages(@storybook/react, @storybook/addon-docs and etc.) to version 6.5.10 and now after starting I get an error:
|
Ooh-la-la!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.0.0-alpha.30 containing PR #19104 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
Updates answers-headless-react to the alpha version that announces react 16.14 support. Update unit tests to run in react 16 in addition to 17. I tried to upgrade the lib to use react 18 as as a dev dep, but we still have a few dependencies that don't allow for 18 like storybook/react. I opened up an issue for that particular one, since I believe it's the only one. storybookjs/storybook#18349 (comment) J=SLAP-2113 TEST=manual,auto run test-site with react 16, check dev tools to see it is using react-dom 16.14 update unit tests to run in react 16
Describe the bug
@storybook/react
says in its peer deps it has react 18 support.However, it also has
react-element-to-jsx-string@14.3.4
as a dependency, which does not yet support react 18storybook package.json: https://github.com/storybookjs/storybook/blob/v6.5.5/app/react/package.json.
When I try to npm install
@storybook/react@6.5.5
with react-18 already as a dep in my library, npm logs several warnings about react-element-to-jsx-stringreact-element-to-jsx-string package.json: https://github.com/algolia/react-element-to-jsx-string/blob/v14.3.4/package.json
Upgrading to react-element-to-jsx-string@15 should fix this
The text was updated successfully, but these errors were encountered: