"Failed to build the preview" with React Component #24811
-
Hey all! I'm new to Storybook. I have created a new React component and have multiple stories for it. When I run However, when I run
Lots of output is generated to
though that same page works fine with Any thoughts? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Do you have a custom vite plugin named "vite-plugin-dts" in place? If so, can you try to remove it and try to build it once again? |
Beta Was this translation helpful? Give feedback.
-
Yes, I do (or did 😁 ) I commented out all references to "dts" in my entire project (it was only referenced in I then cleaned my builds ( Running
|
Beta Was this translation helpful? Give feedback.
-
I've checked out your reproduction and I was able to reproduce the issue. Upgrading |
Beta Was this translation helpful? Give feedback.
I've checked out your reproduction and I was able to reproduce the issue. Upgrading
vite-plugin-lib-inject-css
to^2.1.0
fixes the issue :)