chrisvxd / story2sketch

Convert Storybook into Sketch symbols 💎
Other
402 stars 32 forks source link

preview typeof object #45

Closed jholt1 closed 6 years ago

jholt1 commented 6 years ago

Currently using 4.0.0-alpha.16

I get an issue that typeof preview is number, which means it tries to get preview.getStorybook() which for mean in storybook 4 doesn't exist.

This PR fixes the issue of it picking __STORYBOOK_CLIENT_API__.getStorybook() for me, for version 4.

However is there need for some more exploration as to why it comes up as a number?