Storybook: Storybook + Chakra UI V1 not displaying styles

Created on 14 Nov 2020  路  9Comments  路  Source: storybookjs/storybook

Describe the bug
With the new version of Chakra UI v1 storybook has stoped displaying styles, when doing yarn storybook it loads the page but does not display the styles.

Old version:
Screen Shot 2020-11-14 at 08 42 09
Screen Shot 2020-11-14 at 08 41 04

New version
Screen Shot 2020-11-14 at 08 42 00
Screen Shot 2020-11-14 at 08 43 46
Screen Shot 2020-11-14 at 08 44 26

Component
Screen Shot 2020-11-14 at 08 41 12

P1 compatibility with other tools has workaround question / support theming

All 9 comments

Do you have a repro repo you can share?

Here you go, it's all standard install https://github.com/MariuzM/bug_testing

Same problem here (https://github.com/ivan-dalmet/start-ui)
I think it's the emotion 11. But no idea how to fix it :/

Same problem in a project with NextJS + Typescript + Chakra UI + Storybook.

Same problem

I was able to work around this by implementing a custom webpackFinal config:
https://github.com/chakra-ui/chakra-ui/issues/2527#issuecomment-728134371

Any updates on getting this fixed?

@MariuzM PRs welcome!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tomitrescak picture tomitrescak  路  3Comments

sakulstra picture sakulstra  路  3Comments

ZigGreen picture ZigGreen  路  3Comments

purplecones picture purplecones  路  3Comments

shilman picture shilman  路  3Comments