claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

MaxListenersExceededWarning

Open AmAzing129 opened this issue 7 months ago • 6 comments

(node:45174) MaxListenersExceededWarning: Possible EventTarget memory leak detected. 11 abort listeners added to [AbortSignal]. MaxListeners is 10. Use events.setMaxListeners() to increase limit

Using Claude Code Status v1.0.33

IDE Integration • /config ✔ Connected to VS Code extension ✔ Installed VS Code extension

AmAzing129 avatar Jun 24 '25 09:06 AmAzing129

I see the same thing in my IntelliJ IDEA terminal: (node:41996) MaxListenersExceededWarning: Possible EventTarget memory leak detected. 11 abort listeners added to [AbortSignal]. MaxListeners is 10. Use events.setMaxListeners() to increase limit

Update: IntelliJ just crashed with claude code session running inside.

AJM10565 avatar Jun 24 '25 13:06 AJM10565

I have the same issue using cursor ide on a largish repository.

pongnguy avatar Jun 24 '25 17:06 pongnguy

Same error here in just Claude Code on the desktop

chrismcmacken avatar Jun 24 '25 18:06 chrismcmacken

getting this too

rahulkgupta avatar Jun 24 '25 18:06 rahulkgupta

Same here

Shubham-Khichi avatar Jun 24 '25 20:06 Shubham-Khichi

I'm also encountering the AbortSignal event listeners warning.

(node:83618) MaxListenersExceededWarning: Possible EventTarget memory leak detected. 
11 abort listeners added to [AbortSignal]. MaxListeners is 10. Use events.setMaxListeners() to increase limit

System Information

  • Model: MacBook Pro (Mac15,8)
  • Chip: Apple M3 Max
  • Claude Code Version: 1.0.34
  • System Version: macOS 15.5
  • Kernel Version: Darwin 24.5.0
  • Node Version: v20.18.2
  • Terminal: Warp

Claude Doctor

claude doctor

 Claude CLI Diagnostic
 Currently running: npm-local (1.0.34)
 Path: <HOME_DIR>/.nvm/versions/node/v20.18.2/bin/node
 Invoked: <HOME_DIR>/.claude/local/node_modules/.bin/claude
 Auto-updates: Yes
 Config install method: local
 Config auto-updates: true

sjriddle avatar Jun 24 '25 21:06 sjriddle

Fixed v1.0.34

AmAzing129 avatar Jun 25 '25 05:06 AmAzing129

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Aug 10 '25 14:08 github-actions[bot]