-
-
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
[Bug]: Multiple versions of emotion in docs leads to theme error #20217
Comments
@ndelangen I think the reason is that the project has a dependency on |
I resolved via adding a direct dependency on |
This was fixed by storybookjs/testing-library#30, ( |
This could still happen in the real world, not super likely, but possible.. I could make the builder alias it, and ensure a single version. Alternatively, perhaps there's a way to ensure the theming libs never clash, and also do not check for global existence. But I If I understand the issue correctly, @tmeasday you have 2 version of |
We can reopen if you like @ndelangen but I'd say let's wait to see if it comes from users before doing anything about it. In the above case, it was a totally standard installation that led to two different versions of |
Is it also possible this could happen from community addons which are not updated to support SB 7.0 yet? |
Yes, it could happen that way indeed @yannbf |
Right, I'm also seeing this warning before the first error |
Fixing all |
Describe the bug
In a project without an explicit emotion dependency (in fact no version of emotion in
node_modules
), visiting docs, I see two warnings:Then many errors:
etc
To Reproduce
npm i
yarn storybook
Explanation
The issue is due to a dependency on
@storybook/theming@6.5.9
being hoisted and so multiple versions of@storybook/theming@7
being created inside each dependent package.The text was updated successfully, but these errors were encountered: