Dear All
I am following the react testing course and use this code to use vite in the user version to analyse my test:
npm run test:ui
but i face this error every 5 minutes and need to rewrite the terminal:
node:events:497
throw er; // Unhandled 'error' event
^
Error: EBUSY: resource busy or locked, lstat 'C:\DumpStack.log.tmp'
Emitted 'error' event on FSWatcher instance at:
at FSWatcher._handleError (file:///C:/Users/PC/Desktop/react-testing-starter/node_modules/vitest/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:44480:10)
at NodeFsHandler._boundHandleError (file:///C:/Users/PC/Desktop/react-testing-starter/node_modules/vitest/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:42953:43)
at ReaddirpStream.emit (node:events:519:28)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -4082,
code: 'EBUSY',
syscall: 'lstat',
path: 'C:\\DumpStack.log.tmp'
}
I do some code on vite.confiq like this , but it didnt solved the problem:
watch: {
ignored: ['**/C:/DumpStack.log.tmp', '**/.git/**', '**/node_modules/**'],
usePolling: false,
},
is there anyone who knows how to fix it?
it is really annoying