-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Labels
priority: mediumMedium Priority (not high, not low priority)Medium Priority (not high, not low priority)scope: corecore nx functionalitycore nx functionalitytype: bug
Description
Current Behavior
Multiple (node:4192) MaxListenersExceededWarning are being thrown.
Expected Behavior
No (node:4192) MaxListenersExceededWarning is being thrown.
GitHub Repo
https://github.com/nrwl/nx-examples
Steps to Reproduce
- yarn install
- yarn nx run-many --target=lint --all=true --skip-nx-cache=true --verbose=true
- Several
(node:4192) MaxListenersExceededWarningare thrown
Nx Report
Node : 22.16.0
OS : win32-x64
Native Target : x86_64-windows
yarn : 4.2.2
nx : 21.4.0-beta.12
@nx/js : 21.4.0-beta.12
@nx/jest : 21.4.0-beta.12
@nx/eslint : 21.4.0-beta.12
@nx/workspace : 21.4.0-beta.12
@nx/angular : 21.4.0-beta.12
@nx/cypress : 21.4.0-beta.12
@nx/devkit : 21.4.0-beta.12
@nx/eslint-plugin : 21.4.0-beta.12
@nx/module-federation : 21.4.0-beta.12
@nx/react : 21.4.0-beta.12
@nx/rollup : 21.4.0-beta.12
@nx/rspack : 21.4.0-beta.12
@nx/vite : 21.4.0-beta.12
@nx/web : 21.4.0-beta.12
@nx/webpack : 21.4.0-beta.12
typescript : 5.8.3
---------------------------------------
Registered Plugins:
@nx/eslint/plugin
@nx/cypress/plugin
@nx/jest/plugin
---------------------------------------
Community plugins:
@ngrx/component-store : 20.0.0
@ngrx/effects : 20.0.0
@ngrx/entity : 20.0.0
@ngrx/operators : 20.0.0
@ngrx/router-store : 20.0.0
@ngrx/store : 20.0.0
@ngrx/store-devtools : 20.0.0
---------------------------------------
Cache Usage: 1.55 KB / 47.57 GBFailure Logs
(node:19548) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 exit listeners added to [process]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
at genericNodeError (node:internal/errors:983:15)
at wrappedFn (node:internal/errors:537:14)
at _addListener (node:events:592:17)
at process.addListener (node:events:610:10)
at RunningNodeProcess.addListeners (C:\Users\<REDACTED>\node_modules\nx\src\executors\run-commands\running-tasks.js:298:17)
at new RunningNodeProcess (C:\Users\<REDACTED>\node_modules\nx\src\executors\run-commands\running-tasks.js:214:14)
at SeriallyRunningTasks.createProcess (C:\Users\<REDACTED>\node_modules\nx\src\executors\run-commands\running-tasks.js:192:16)
at SeriallyRunningTasks.run (C:\Users\<REDACTED>\node_modules\nx\src\executors\run-commands\running-tasks.js:159:45)
at new SeriallyRunningTasks (C:\Users\<REDACTED>\node_modules\nx\src\executors\run-commands\running-tasks.js:123:14)
at runCommands (C:\Users\<REDACTED>\node_modules\nx\src\executors\run-commands\run-commands.impl.js:66:19)Package Manager Version
No response
Operating System
- macOS
- Linux
- Windows
- Other (Please specify)
Additional Information
Adding "lint": { "executor": "@nx/eslint:lint" } to targets array of all libraries except shared-styles resolves the issue - no MaxListenersExceededWarning is thrown.
A-EbrahimRSA, lppedd, danielmahon, cloleb, DannyvanHolten and 10 moreh3adache and amrsalama
Metadata
Metadata
Assignees
Labels
priority: mediumMedium Priority (not high, not low priority)Medium Priority (not high, not low priority)scope: corecore nx functionalitycore nx functionalitytype: bug