nx: Getting a lot of Watch error: Daemon closed the connection blocking me from running my projects frequently.
Current Behavior
I don’t know why this seems to keep happening but it has something to do with running multiple nx projects, I’m really not sure. Sometimes is fixed by restarting my IDE, sometimes I need to reboot my machine but this error has been becoming more and more frequent and seriously breaking my flow.
Expected Behavior
When apps are served they should start, nx connection daemon should not prevent my apps from launching.
GitHub Repo
No response
Steps to Reproduce
- unknown
Nx Report
Node : 18.15.0
OS : win32-x64
pnpm : 8.6.12
nx (global) : 16.6.0
nx : 16.6.0
@nx/js : 16.6.0
@nx/jest : 16.6.0
@nx/linter : 16.6.0
@nx/workspace : 16.6.0
@nx/cypress : 16.6.0
@nx/devkit : 16.6.0
@nx/esbuild : 16.6.0
@nx/eslint-plugin : 16.6.0
@nx/nest : 16.6.0
@nx/next : 16.6.0
@nx/node : 16.6.0
@nx/react : 16.6.0
@nx/storybook : 16.6.0
@nx/vite : 16.6.0
@nx/web : 16.6.0
@nx/webpack : 16.6.0
nx-cloud : 16.2.0
typescript : 5.1.6
---------------------------------------
Community plugins:
@nx-tools/nx-container : 5.0.2
@nx-tools/nx-prisma : 5.0.2
Failure Logs
> nx run oauth-server:build
> nx run oauth-server:serve:development
[ watch ] build succeeded, watching for changes...
Watch error: Daemon closed the connection
——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
> NX Running target serve for project oauth-server and 2 tasks it depends on failed
Failed tasks:
- oauth-server:serve:development
Hint: run the command with --verbose for more details.
View structured, searchable error logs at https://nx.app/runs/iEjzbs3chk
ELIFECYCLE Command failed with exit code 1.
Process finished with exit code 1
nx run organization-api:serve:development --port 7001
[ watch ] build succeeded, watching for changes...
Watch error: Daemon closed the connection
——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
> NX Running target serve for project organization-api failed
Failed tasks:
- organization-api:serve:development
Hint: run the command with --verbose for more details.
View structured, searchable error logs at https://nx.app/runs/AB87D8GwjX
ELIFECYCLE Command failed with exit code 1.
Process finished with exit code 1
Operating System
- macOS
- Linux
- Windows
- Other (Please specify)
Additional Information
No response
About this issue
- Original URL
- State: closed
- Created 10 months ago
- Reactions: 2
- Comments: 15 (6 by maintainers)
hmmm yes, disabling nx console did make the problem go away!