Open mphstudios opened 2 years ago
Do you a have a reproduction repo you can share? If not, can you create one? See how to create a repro. Thank you! 🙏
Michael (@shilman) I tried to create a repro with several levels of reduced complexity and though was able to reproduce the issue am not convinced the issue is not caused by specifics of our project so I invited you as an outside collaborator. Hopefully we can find the issue and fix/document it to help others.
Hi @mphstudios are you on our Discord https://discord.gg/storybook? I'm able to access the repo but unable to install due to some private npm packages.
Hi, just a quick note that we have the same problem: a storybook setup with webpack5 and vue2. Trying out the new storyStoreV7 will result in a error 'Cannot read properties of undefined (reading 'STORYBOOK_WRAPS')'
However, just switching to vue3 and @storybook/vue3 will make it magically work ! (sorry can't make a repo, it is all internal stuff)
I'm seeing a similar issue with Angular 12 or 13 storybook/docs 6.4.13 and 6.5.alpha.21
All I have to do is take a standard setup, create 6 stories (duplicates are fine) and I see the freeze.
I created this repo for another bug, but you can pull it down and add 5 stories to one of the story files and you should be able to see the issue. https://github.com/DaveMBush/demo-workspace
Hi guys! Any news on this issue? We have thousands of stories in Vue2 all with storiesOf API and we started converting in CSF3 format.
Since then, our storybook cold start is twice as slow in the browser and our a11y tests with storyshots-puppeteer are much much slower.
It happens because when initializeWithStoryIndex
is called in lib/preview-web/src/PreviewWeb.tsx
, the emitted event Events.SET_STORIES
stringify the payload returned by this.storyStore.getSetStoriesPayload()
with telejson and because of CSF3 API, args are now serialized for all stories and it causes a very perceptible slowdown.
With the storyStoreV7, this event is not emitted but we are stuck with this issue.
Michael (@shilman), can you please check my previous comment (https://github.com/storybookjs/storybook/issues/16985#issuecomment-1123811368). It looks like that Vue2 users are left behind and can't use storyStoreV7 and all the optimisations that come with it.
For now and for us, switching all our stories in CSF3 is not an option because of serialization of all the args. I was hoping that switching to storyStoreV7 fix that performance issue but can't because of this current issue.
Do you still need a reproduction repo?
Thank you.
This merged PR #18375 should fix the issue with Vue2 and storyStoreV7
Describe the bug
Migrating from Storybook 6.3 to 6.4 or to 6.5-alpha throws
undefined is not an object (evaluating 'element.options[VALUES]')
System
Additional context
./storybook/main.js