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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Emotion-related deps #18992
Update Emotion-related deps #18992
Conversation
1912276
to
2c41d86
Compare
# Conflicts: # code/addons/storyshots/storyshots-core/package.json # code/yarn.lock
I'm getting these errors when I run a sandbox
(likely the same issue as CI is having): @ndelangen it looks like a manager bundling issue? |
PS when I run the sandbox on Any idea on why that might be @Andarist @ndelangen ? |
I also created this branch https://github.com/storybookjs/storybook/tree/revert-disable-emotion-unsafe-ssr-warnings where I reverted #18361 as you suggested @Andarist and I am not seeing the warnings in a sandbox either. Which version of emotion resolved the issue? It looks like monorepo is currently bundling version |
Confirmed I don't see the warning in docs mode in the latest 7.0 alphas. |
This was fixed by @emotion/cache@11.10.2 (had to fix a regression in a follow-up release though: @emotion/cache@11.10.3). This depends on the rendered components - since the warning only gets printed when such "unsafe" styles are being rendered. Maybe you have not entered a screen that would trigger this? I've confirmed now that the issue can be reproduced using this repro (on Storybook 6.5.x) after entering the Docs tab in Button stories. This PR is worth merging anyway as it should be a safe upgrade. If you want to confirm that it actually fixed the problem then I would appreciate it if you could create a repro with the current 7 alpha that I could take a look at. |
@Andarist I tried in a vanilla SB7 project and I don't see the same warnings. I'm not sure what would have fixed it though, if as you say the upstream problem wasn't fixed until I suspect @ndelangen is most likely to have the answers on both fronts. |
This got superseded by #19029 |
fixes #18656
I've finally fixed the issue with ignoring some of those ignore flags in Emotion - so upgrading to the new version of Emotion should fix your problems 馃
With this, changes from https://github.com/storybookjs/storybook/pull/18361/files could be reverted if you want
This PR also closes #18657