-
Notifications
You must be signed in to change notification settings - Fork 34
[ CRITICAL ]: Using the addon freezes the app #6
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
Comments
Hey, could you share some info about your setup? I've noticed the addon doesn't work well with Tailwind in dev mode, because it incluses all of its styles in the stylesheet, including over a thousand pseudo class selectors. I'm working on a new approach to fix this. Meanwhile, |
@ghengeveld Yeah makes sense. I kinda gave up on this addon. But if you release a new version I can test it on my end and let you know if it's fixed. |
Hey, I have to say I am super exited about this project as it's one of the few missing pieces that we have in our screenshot automation pipeline. We tried the addon out but unfortunately, it freezes the storybook for us too - after we navigate few times using default storybook component navigation, we are not able to click on anything anymore (and that is even without interacting with the addon at all - just by having it enabled). Not sure what info would help you figure out the root cause but our setup is:
We also noticed a couple of errors in the console when viewing stories on failing to execute withPseudoState.js:178 DOMException: Failed to execute 'insertRule' on 'CSSStyleSheet': Failed to parse the rule '.ColDir-root:focus:not(:focus-visible):not(:hover) .directsText-232, .pseudo-focus.pseudo-focus-visible.pseudo-hover .ColDir-root:not():not() .directsText-232 { display: none; }'.
at rewriteStyleSheets (http://localhost:52752/vendors~main.b48b59379cb9ad43dc02.bundle.js:350104:21)
at Object.<anonymous> (http://localhost:52752/vendors~main.b48b59379cb9ad43dc02.bundle.js:350138:10)
at http://localhost:52752/vendors~main.b48b59379cb9ad43dc02.bundle.js:87098:14
at Array.forEach (<anonymous>)
at Channel.handleEvent (http://localhost:52752/vendors~main.b48b59379cb9ad43dc02.bundle.js:87097:19)
at handler (http://localhost:52752/vendors~main.b48b59379cb9ad43dc02.bundle.js:87023:16)
at Channel.emit (http://localhost:52752/vendors~main.b48b59379cb9ad43dc02.bundle.js:87030:9)
at StoryRenderer._callee3$ (http://localhost:52752/vendors~main.b48b59379cb9ad43dc02.bundle.js:116642:30)
at tryCatch (http://localhost:52752/vendors~main.b48b59379cb9ad43dc02.bundle.js:342983:40)
at Generator.invoke [as _invoke] (http://localhost:52752/vendors~main.b48b59379cb9ad43dc02.bundle.js:343213:22) null
rewriteStyleSheets @ withPseudoState.js:178 |
What is the progress on this issue? |
Hey, sorry for the delay and thanks for reporting. I've been dealing with Storybook 6.2 issues since it was released a couple weeks ago. Now that that's settled down, I can direct some attention to this addon again. |
To clarify the situation, here's the deal:
Some potential solutions:
|
causing lag in storybook, see chromaui/storybook-addon-pseudo-states#6
…y) (#2134) * feat(storybook): update theme of Storybook for Inter font * feat(design-system): add full design system colors to theme * feat(story): add Colours foundation story * feat: add full colour palette * feat: remove storybook-addon-pseudo-states causing lag in storybook, see chromaui/storybook-addon-pseudo-states#6
…y) (#2134) * feat(storybook): update theme of Storybook for Inter font * feat(design-system): add full design system colors to theme * feat(story): add Colours foundation story * feat: add full colour palette * feat: remove storybook-addon-pseudo-states causing lag in storybook, see chromaui/storybook-addon-pseudo-states#6
This problem is also happening with me, after I added plyr-react with a video component it started crashing everything, even when I was not testing the video component itself. I was using storybook 6.3.7. Then I updated it to storybook 6.4.0-alpha.31 and the "pseudo-states" is gone, the menu with button states is not showing but at least everything is working fine now. The solution I have for now is not to use this addon. But it would be great to have this solved, let me know if I can contribute with more information. |
This is very much a critical bug still -- is this project dead? |
This is still a major performance issue, and seems to be related to the docs addon. A workaround is to only include this addon and related stories (in |
Having the same issue with Tailwind JIT |
I'd experienced this issue using TailwindCSS. I've just tried re-enabling this addon now that my project uses storybook's webpack5 builder and things appear to be running much smoother. Am I going crazy or can anyone else confirm? |
Closing this, as the issue seems to be resolved and the ticket is stale. |
I'm still observing freezes, on storybook 8.0.8 It happens when I change the parameter key in the story: export const MyStory: Story = {
parameters: {
pseudo: {
hover: ['.hover'],
active: ['.active'],
focusVisible: ['.focus'] // <-- here
}
}, |
When having this addon on my storybook, the whole app would freeze and go unresponsive upon entering only a couple of characters in a controls field.
Any interaction with other addons would eventually, break the app.
No errors ever output in the console, so it was hard to trace it back to this dependency.
I hope this can prevent trouble for some people.
The text was updated successfully, but these errors were encountered: