divriots / story-to-design

Keep your Figma libraries true-to-code in a single click.
https://story.to.design
28 stars 0 forks source link

New component issue report #18

Closed johnil-kambi closed 2 years ago

johnil-kambi commented 2 years ago

Describe the problem


Bug report identity: Please do not edit

Task path: SP3MhUxKQP7GnWaFqwU4/epqp2zUjuZhR0HmKz7WD/1bf7oi1ccsppx

gqio commented 2 years ago

Hello,

As in discussed in DM in Discord.

So apparently you are not only the one with this issue (broken iframe.html) Here are some issues on github: https://github.com/echoulen/storybook-addon-styled-component-theme/issues/37 It seems to come from the decorator for the ThemeProvider ( here storybook-addon-styled-component seems dead or at least lightly supported)

The two latests propose some solution for fixing the storybook

I also found a public storybook behaving exactly like yours http://storybook.around.video.s3-website-us-west-2.amazonaws.com/iframe.html?args=&id=atoms-button--button&viewMode=story Apparently the theme is not setup correctly when opening only the iframe resulting in an error swallowed and then the render does not render at all

Solution was found by @johnil-kambi to remove completely this addon.