Nuxt v5 with TUI error and terminal hangs

Aberta
#1,647 4 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
48/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
node.js, nuxt, typescript
Domínio
cli

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
TypeScript
Estrelas
402
Forks
125
Merge médio
2d 9h
PRs com merge (30d)
37

Preparar o ambiente

Abrir no Codespaces

Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de nuxt/cli

Todas as issues de nuxt/cli

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.