diff --git a/packages/web/src/executors/file-server/file-server.impl.ts b/packages/web/src/executors/file-server/file-server.impl.ts index e009812f71942..89fa1d9326045 100644 --- a/packages/web/src/executors/file-server/file-server.impl.ts +++ b/packages/web/src/executors/file-server/file-server.impl.ts @@ -97,12 +97,12 @@ function createFileWatcher( includeGlobalWorkspaceFiles: true, includeDependentProjects: true, }, - async (error, { changedFiles }) => { + async (error, val) => { if (error === 'closed') { throw new Error('Watch error: Daemon closed the connection'); } else if (error) { throw new Error(`Watch error: ${error?.message ?? 'Unknown'}`); - } else if (changedFiles.length > 0) { + } else if (val?.changedFiles.length > 0) { changeHandler(); } }