-
-
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 v4 addons break storybook v5 #5645
Comments
@Rolandisimo v4 addons are not intended to be used with v5 -- that's why we're releasing this as 5.0.0 and not 4.2.0 (see https://semver.org/). Is there a reason you don't want to upgrade the addons as well? |
@shilman I actually honestly searched for add-ons v5 but couldn't find them. Which made me suspicious, of course. Could you provide a link possibly to a v5 release of addons? Thanks! |
Found it https://github.com/storybooks/storybook/tree/next/addons Thanks @shilman |
No worries, good luck! |
Hello! 👋 I'm getting this issue as well but with all my packages being on Is there a way I could get it to work without having to upgrade my React to v16? Thanks! |
@pnarielwala-tc can you open a separate issue? SB5 should work with React v15 |
@pnarielwala-tc Hey! Did you solve or open that issue? I am getting the same error. Using 4.1.18 for all storybook packages and 16.8.6 for react and react-dom. |
UPDATE
Seems related to #4525
Describe the bug
"@storybook/react": "^4.1.12"
causes storybook not being able to run with the current CRA2 project causingUncaught TypeError: Object(...) is not a function
.✅ Below is a dependency list that worked for the ongoing project and a clean CRA2 app if addons are not registered:
❌ Issue occurred after registering addons:
Result
Uncaught TypeError: Object(...) is not a function
TypeError: _addons.default.getElements is not a function
and other errorsTo Reproduce
Steps to reproduce the behavior:
Screenshots
The text was updated successfully, but these errors were encountered: