-
Notifications
You must be signed in to change notification settings - Fork 26
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 5.x canvas view broken #37
Comments
I'm having the same issue too, any ideas on what is causing this? |
Tracking against: echoulen/storybook-addon-styled-component-theme#37 as #1
same here (had to disable) after updating to storybook 5.3 |
@echoulen so, this was labelled as a |
This is also a pain point for me. Also happy to help with anything to fix this |
I am having this same issue. Is there a fix or workaround? |
Have switched to https://github.com/semoal/themeprovider-storybook and preview works. |
Thanks @majklovec this solved my issue |
Worked for me too. Thanks @majklovec! |
Worked for me too, great! Thanks @majklovec ! |
I unfortunately ran into some rendering issues with ‘themeprovider-storybook’ so ended up switching to the more generic ‘addon-contexts’ which is perfect! |
Thanks!!! @sami616 , I solved my issue |
We are using storybook 5.x with styled-component-theme addon, here the full versions:
There was no error on the browser and the storybook console however when I click the 'canvas view' button, the canvas view only shows a blank page.
After disabling all plugins one by one, I noticed styled-component is the culprit.
Just removing the addDecorator part is enough for making canvas view again.
Live links:
https://mph-global.appspot.com/
Sample story:
https://mph-global.appspot.com/?path=/story/welcome-to--storybook
Not working canvas view:
https://mph-global.appspot.com/iframe.html?id=welcome-to--storybook
The text was updated successfully, but these errors were encountered: