Nuxt v5 with TUI error and terminal hangs

Open
#1,647 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
node.js, nuxt, typescript
Domain
cli

Research direction

Start by running the reported nuxi.mjs dev --envName web command with --trace-warnings and compare the output with TUI disabled. Trace the warning from srvx/dist/adapters/node.mjs at line 125, where the reported stack reaches pipeline, and determine whether the repeated ServerResponse close listeners correlate with the terminal hang. Done means the cause is reproducible and the TUI no longer hangs after navigation.

Written by the indexing model from the issue text.

Description

I'm testing Nuxt v5 on a huge repo using Nuxt 4.6.3, after some minimal changes at nitro configuration, the app is running, but the TUI hangs after a few navigations:

node error at TUI
Image

System Info (cannot paste TUI info):

Running nuxi manually with --trace-warnings, this is the error:

node --trace-warnings ./node_modules/@nuxt/cli/bin/nuxi.mjs dev --envName web

15:08:06 GET /viviendas/10/grupo-humano (node:21328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [ServerResponse]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
    at genericNodeError (node:internal/errors:986:15)
    at wrappedFn (node:internal/errors:540:14)
    at warnMaxListenersExceeded (node:events:602:13)
    at _addListener (node:events:593:7)
    at ServerResponse.addListener (node:events:616:10)
    at eos (node:internal/streams/end-of-stream:297:10)
    at pipe (node:internal/streams/pipeline:469:10)
    at pipelineImpl (node:internal/streams/pipeline:374:25)
    at node:stream/promises:31:5
    at new Promise (<anonymous>)
    at pipeline (node:stream/promises:20:10)
    at IncomingMessage.onReadable (file:///D:/work/projects/fi2net/COLOMBIA/redimu/redimu-aps-1.0/redimu-aps-ui/node_modules/.pnpm/[email protected]/node_modules/srvx/dist/adapters/node.mjs:125:4)
    at IncomingMessage.wrapper (node:events:639:12)
    at IncomingMessage.emit (node:events:514:28)
    at emitReadable_ (node:internal/streams/readable:845:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:89:21)

Disabling TUI the node error just disappears:

running nuxt dev server without TUI
Image

Dominant language
TypeScript
Stars
402
Forks
125
Avg merge
2d 9h
Merged PRs (30d)
37

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nuxt/cli

All issues in nuxt/cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.