You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just noting that the @storybook/theming/dist/cjs/... path in that error is likely noteworthy. This is likely because Next.js is attempting to render the page on the server, in Node.
I don't think you should be using anything related to Storybook outside your story files. This would include it in your production code. If you need to add global styles to pages, then you should add it as a decorator. Maybe in preview.js?
@thebuilder — Generally, you're absolutely correct. In this case, I'm using @storybook/theming for my project because it's part of the Storybook website and needs to be themed to match. This is the primary reason we distribute the package independently of the rest of Storybook, even though the Storybook UI itself is by far the biggest consumer.
Describe the bug
@storybook/theming@6.5.0-alpha.31
or later@storybook/theming@6.5.0-alpha.30
or earlier does not produce the error (see commit history)yarn dev
oryarn build
Here's the error:
To Reproduce
https://github.com/kylegach/storybook-theming-bundling-bug-2
System
Output
Additional context
I think these links are relevant:
@storybook/theming
to avoid emotion11 conflicts #17000The text was updated successfully, but these errors were encountered: