fix: emotion compatibility with latest storybook#5570
Conversation
✅ Deploy Preview for redwoodjs-docs canceled.
|
|
Hi there 👋
The function |
|
Thanks @TimKolberger appreciate the insight! |
|
Thanks @TimKolberger! We did just upgrade to Storybook 6.5—it passed CI and everything but should be tested a bit more—so we may actually be in the clear here. |
|
Awesome! 🚀 |
|
@callingmedic911 is it possible for you try the latest canary to see if it fixes the issue? |
|
Yep, sure. What is changed btw? |
|
@callingmedic911 the latest canary upgraded to Storybook v6.5.3 which may already fix the issue. |
|
@jtoar With the latest canary, I just omitted the fallback function and the storybook was up. It didn't need |
|
Remember to also double check chakra please? |
|
I just tried Chakra.
Ran across issue spinning up So I downgraded to |
|
@callingmedic911 yeah that's probably the best way forward. We can release a patch with that fix. Should be a one-liner right? |
jtoar
left a comment
There was a problem hiding this comment.
This looks good. Going to get this into the minor RC, which has Storybook v6.5.4, to see if this fixes MUI for @MichaelrMentele.
* fix: Emotion compat with latest storybook * Cleanup emotionAlias feature flag * Remove unused `merge` Co-authored-by: Dominic Saadi <[email protected]>
This is a work in progress, I'll add more details.
Currently Storybook doesn't seem to work with the latest emotion. I had to modify some emotion fallback introduced with Chakra integration. Assuming this is related: storybookjs/storybook#16547
Need to do next:
withEmotionVersionFallbackTest compatibility with combination of older emotion (and storybook?)Removed feature flagIf checkingRemoved feature flag@emotion/coreis sufficient to disable emtion alias.cc: @dac09 @virtuoushub