You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
The following issue is happening on a large project I migrated from vue-cli to Vite. However, to eliminate as many variables as possible, I was able to reproduce the exact issue with a newly scaffolded project using the
npm create vite@latest
command.
The watcher process started by
vite build --watch
fails periodically. Issue
#10096
is exactly what we are seeing happen. If I add a folder to my C:\ drive (or add files to any folder within the C:\ drive), the watcher fails.
#10096
is closed and was supposedly fixed by
#11261
, but we are still seeing this happen, even with a newly scaffolded Vite project.
Using a watcher is integral to how my team works on our various Vue projects. While a fix is being investigated, are there any work arounds besides changing the directory of the project from the C:\ to D:\ drive? I can't remember what thread I found that workaround in, but this is not an acceptable workaround for my team.
Check that there isn't
already an issue
that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to
vuejs/core
instead.
@sapphi-red
removing the vite.svg image and references to it in a newly scaffolded Vite project fixes the issue.
This is obviously something we can't do in our actual projects (removing all images / static assets).
I'm assuming what you posted are the problem areas in Vite's code. Is there anything I can do with my own source code to mitigate the issue while a fix is worked on?
Error: EBUSY: resource busy or locked, lstat 'D:\DumpStack.log.tmp' on vite build --watch
#13333
One of the methods I use is to trigger stably: when you use unocss, just create a file in the root directory of the disk where the project is located.
After removing '/__uno.css' from 'build watch', the project can be compiled normally without errors