Nuxt v5 with TUI error and terminal hangs

オープン
#1,647 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
node.js, nuxt, typescript
領域
cli

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
TypeScript
スター
402
フォーク
125
平均マージ
2日 9時間
マージ済み PR(30日)
37

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nuxt/cli のほかの issue

nuxt/cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。