diff --git a/packages/nx/src/daemon/server/server.ts b/packages/nx/src/daemon/server/server.ts index 3e5552122b629..0aa1766158478 100644 --- a/packages/nx/src/daemon/server/server.ts +++ b/packages/nx/src/daemon/server/server.ts @@ -298,7 +298,7 @@ const handleWorkspaceChanges: FileWatcherCallback = async ( return; } - if (err || !changeEvents || !changeEvents.length) { + if (err) { let error = typeof err === 'string' ? new Error(err) : err; serverLogger.watcherLog( 'Unexpected workspace watcher error',