-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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]: Addons cant use react 18 hooks (useId, useInsertionEffect) #21034
Comments
Closing this as a duplicate of #20378 cc @valentinpalkovic |
Is there a workaround for suppressing the errors? I'm not developing add-ons by the way, rather, using some of our design system functions to supplement manager.js with functionality. |
I think there is an error when using the component of framer motion in storybook 7.0. The same error came out when I used the storybook in the package using framer motion. "framer-motion": "^9.0.2"
Is there any solution? |
Describe the bug
Addons can't use newer React 18 APIs even when the correct version of react is being used. This is because the symbols are missing from here: https://github.com/storybookjs/storybook/blob/next/code/ui/manager/src/globals/exports.ts#L6
I ran into this when trying to use Chakra-UI in an addon:
To Reproduce
System
Additional context
No response
The text was updated successfully, but these errors were encountered: