-
Notifications
You must be signed in to change notification settings - Fork 106
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] builder-vite not working with vite 3 #484
Comments
This definitely looks related to vite changing the structure of their cache. When you deleted |
We have a monorepo setup. It looks like this:
I've deleted all |
Is this an open-source project that you can share a link to? If not, are you able to create a minimal reproduction that you can share? Without being able to dig in and poke around, I'm not sure what's going on. The one last thing you could try is a And here's someone who had the issue without storybook, it seems: vitejs/vite#9522 |
I am experiencing the same issue. Updating to 0.2.2 from 0.1.39 causes the following error:
I even completely removed |
I recently ran into this problem, it seems to be intermittent which makes it difficult to figure out This will sometimes work but other times generate an error
This is on windows btw. |
As a workaround deleting the |
One trigger for the problem seems to be when adding new packages to a project. Not sure if it's a Windows only problem, but deleting node_modules if it crops up then doing a |
I opened an issue in vite, and there's a PR that may help to improve the situation, but I'm not sure it'll solve it completely. |
What ultimately fixed this for me, was immediately closing the browser tab opened by |
Interesting! You can also prevent a browser from opening in the first place by passing the |
What version of
vite
are you using?3.0.9
System info and storybook versions
Describe the Bug
I'm trying to update vite from 2 to 3. After updating vite and @storybook/builder-vite to the latest, I'm getting an error
I tried to delete
node_modules/.cache
andnode_modules/.vite-storybook
and re-run storybook. But this didn't work. I then tried to delete the whole node_modules folder andyarn.lock
file and re-install everything and run storybook. But got the same error.This is my storybook config file:
After I downgraded to vite
2.9.14
and @storybook/builder-vite to0.1.41
, everything started working again. Nothing was changed to the actual code.Link to Minimal Reproducible Example
No response
Participation
The text was updated successfully, but these errors were encountered: