chokidar
chokidar copied to clipboard
Chokidar reports errors with extreme high frequency when the network drive disconneces which crashes the server
Describe the bug
When i try to watch a folder over a network drive. once the network drive disconnects or when it is not connected. chokidar keeps triggering the .on('error', error => log(Watcher error: ${error}
)) event
**Versions **
- Chokidar version [e.g. 3.5.1 or commit hash]
- Node version [e.g. 14.16.0, ensure you are using the latest node.js]
- OS version: Windows 10
To Reproduce:
Just the example on github. copy and paste it and disconnect the drive. or try to connect to a network drive that does not exist
Just the
Expected behavior I expect chokidar to wait for the drive to reconnect or to tell me that the drive is not connected.
Additional context Add any other context about the problem here. Optionally nice to know what project you are working on.