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
Storybook v8 not working in combination with Styled Components and twin.macro #856
Comments
There might be a problem with Babel or something similar, as I'm using vite-storybook-style components-twin.macro, and all of them are working fine. |
I found that [email protected] now requires addon-webpack5-compiler-babel to work correctly. |
By the way, those errors meant that babel-plugin-macros wasn't being loaded. |
Storybook v8 fails to run once twin.macro or a styled component that uses twin.macro is used in a component. This problem is not occurring when using Storybook v7.6.17 or when using Storybook v8 without twin.macro.
This problem occurs in my own project (using Babel) and in the provided official example.
Can be replicated by:
npx storybook@latest upgrade
or manuallynpm run storybook
The following error is displayed in the terminal:
The text was updated successfully, but these errors were encountered: