paulmillr/chokidar

Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\DumpStack.log.tmp'

Closed this issue · 4 comments

Describe the bug

I am trying to run Storybook 6 on Windows 10 and I get this error. Storybook is unable to run. On WSL2 and Docker under the exact same code, everything works fine.

The following error pops up:

Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\DumpStack.log.tmp'
Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\hiberfil.sys'
Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\pagefile.sys'
Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\swapfile.sys'

Versions (please complete the following information):

  • Chokidar version 3.4.1
  • Node version v10.15.0, v12 and v14.11.0
  • OS version: Windows 10

To Reproduce:

Try to run a storybook 6 project.

Expected behavior
Should launch.

you're watching swapfile and hibernation files. The error is legit. You should not be watching them. Watch something more granular e.g. C:\Files\dir, not C:\

Sorry that was caused by a slash/backslash problem on my storybook settings on Windows.

I find an related issue in the CMake Tools VS Code Extension: microsoft/vscode-cmake-tools#1430.

and thanks for this issue to give me some idea.

I still get this error
In watch parameters I have
ignored: /^.*.(?!docx$)[^.]+$/,
It should ignore "C:\DumpStack.log.tmp"