Nuxt v5 with TUI error and terminal hangs

Offen
#1,647 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
node.js, nuxt, typescript
Bereich
cli

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
TypeScript
Sterne
402
Forks
125
Ø Merge
2 T. 9 Std.
Gemergte PRs (30 T.)
37

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus nuxt/cli

Alle Issues in nuxt/cli

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.