-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
[Bug]: Storybook 8: [storybook:react-docgen-plugin] Leading decorators must be attached to a class declaration in scss #26109
Comments
For some reason, react-docgen wants to parse your CSS files, which it shouldn't. Can you provide a minimal reproduction? |
Repl: https://github.com/dartess/sb8-repl-react-docgen-plugin-bug run
The error is different because I removed the extra code. But the problem is the same: trying to parse css as js. Important: if you replace
with
the build is successful. |
I think this relates to: |
OK, I've done some research, and was able to make react-docgen ignore certain files. I'll open a PR with a fix for storybook's react-vite framework. |
Describe the bug
When I try to build I got:
But
storybook dev
works fine.To Reproduce
No response
System
No response
Additional context
SB 8.0.0-beta.3
The text was updated successfully, but these errors were encountered: