-
-
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.0 + vite build error #26494
Comments
Hi @siosio34 Thanks for reaching out! The first error is known and is already reported here. I am not sure about the second error. The third error, though, might be related to the reported issue here: #25885. The reported solution is not to use storybook-dark-mode since it currently doesn't support Storybook 8 (At least a PR already exists: hipstersmoothie/storybook-dark-mode#251) Additionally, please ensure that all your Storybook add-ons are compatible with Storybook 8. |
This is the error output I'm getting:
I also created the file |
@siosio34 Can you create a minimal reproduction via https://storybook.new or by providing a minimal reproduction repo? |
I am also having this error after updating to Storybook 8:
|
@vasicvuk I'm really sorry, but can you create an example referring to the link #26494 (comment)? Currently, my project is on an internal network, so it is not easy to create a reproduction of that part. |
Hi @siosio34, In my case, the issue was storybook-addon-mock which caused the issue, they have not updated it to Storybook 8. Link to issue for update: |
Oh I found it. The issue occurred because you were using the deprecated @storybook/addons package. Sorry, this issue will be closed. |
No, I will reopen it. The build was successful, but issues 1 and 2 still occur. Issue number 1 even occurs in the official react-vite typescript example on the site https://storybook.new. |
So the first error is already tracked in a different issue and the third one seems to be caused by incompatible addons. So I would propose to either adjust the issue description or to create a new issue exclusively about your second error. Don't forget to provide a reproduction if possible. |
I ran into this issue as well and resolved it by uninstalling |
This one did the trick for me. |
This issue is closed. If you have a similar issue as me, please refer to the comment. #26494 (comment) |
Describe the bug
When I ran Storybook in a development environment, I confirmed that it worked well.
However, the moment I type storybook build to build, it does not work as desired.
There are three types of error logs, which are as follows.
To Reproduce
No response
System
Additional context
No response
The text was updated successfully, but these errors were encountered: