diff --git a/lib/DirectoryWatcher.js b/lib/DirectoryWatcher.js index abbb142..b2ea231 100644 --- a/lib/DirectoryWatcher.js +++ b/lib/DirectoryWatcher.js @@ -465,7 +465,9 @@ class DirectoryWatcher extends EventEmitter { onScanError(err) { if (err) { - console.error("Watchpack Error (initial scan): " + err); + if (err.code !== "ENOTDIR") { + console.error("Watchpack Error (initial scan): " + err); + } } this.onScanFinished(); }