Skip to content
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

[Bug]: mdx-js/react version in the latest @6.5.14 is old #20260

Closed
t29gupta opened this issue Dec 14, 2022 · 1 comment
Closed

[Bug]: mdx-js/react version in the latest @6.5.14 is old #20260

t29gupta opened this issue Dec 14, 2022 · 1 comment

Comments

@t29gupta
Copy link

Describe the bug

Current version of @storybook/addon-docs@6.5.14 is using "@mdx-js/react@1.6.22"; which has a peer dependancy on React 17 max. This is preventing the library to be used in React 18 project.
@mdx-js/react already has a later version supporting react 18. Please upgrade the library in the package.

Screenshot 2022-12-14 at 12 28 50

To Reproduce

Installing addon-docs in React-18 project. Getting dependancy error.

System

No response

Additional context

No response

@shilman
Copy link
Member

shilman commented Dec 14, 2022

This is fixed in the latest prerelease & we can't apply the fix back to 6.5 due to semver. Please try upgrading:

npx storybook@next upgrade --prerelease

Preliminary 7.0 migration guide here https://www.notion.so/chromatic-ui/Storybook-7-migration-guide-dbf41fa347304eb2a5e9c69b34503937

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants