-
-
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 6.5.9 not working with React 18. #18559
Comments
I am wondering if storybook is being maintained or not. I found a lot of issues with the 6.5.9 update but I don't see reply from the maintainers. |
I have the same problem :( |
@nonameolsson it might be fixed in v7.0 - which is currently in alpha ✨ |
Similar issue for me in
|
See algolia/react-element-to-jsx-string#728 This is already fixed by Maybe just bumping the dep would fix it. |
"overrides": {
"@storybook/react": {
"react-element-to-jsx-string": "15.0.0"
}
} |
Olé!! 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. |
These are mentioned in the original post. Can this be re-opened? |
I've tried upgrading to v7 with the suggested After installing the v7 packages I'm still left with these peerdependency conflicts: So it seems that @mdx-js/react still needs to be upgraded. Is that still in the works for storybook v7 @shilman? |
N Could not resolve dependency: |
@ismay mdx has been upgraded in v7 @daphnesmit npm audit warnings are fixed in v7. can't be fixed in v6 due to semver/breaking changes in dependent packages. |
Latest v6.x is not compatible with React@18: storybookjs/storybook#19104 storybookjs/storybook#18559
Describe the bug
In my project with React 18, the version of Storybook and its add-ons with version 6.5.9 are not compatible with react version 18.
Getting failed while installing package.
Conflicting peer dependency: react@17.0.2
npm WARN node_modules/react
npm WARN peer react@"^16.13.1 || ^17.0.0" from @mdx-js/react@1.6.22
npm WARN node_modules/@storybook/addon-docs/node_modules/@mdx-js/react
npm WARN @mdx-js/react@"^1.6.22" from @storybook/addon-docs@6.5.9
npm WARN node_modules/@storybook/addon-docs
The text was updated successfully, but these errors were encountered: