nuxt/nuxt

Legacy `tsconfig.json` excludes `nuxt.config.ts`, modules, and server code

已關閉

#35,146 建立於 2026年5月21日

 (2 則留言) (1 個反應) (0 位負責人)TypeScript (5,607 個分叉)batch import
good first issuepossible regression🔨 p3-minor

倉庫指標

星標
 (60,221 顆星)
PR 合併指標
 (平均合併 3天 7小時) (30 天內合併 114 個 PR)

描述

Reproduction

Setup a Nuxt project with v4.4.6 and the legacy tsconfig.json:

{ "extends": "./.nuxt/tsconfig.json" }

Describe the bug

Since v4.4.6 the legacy tsconfig.json does exclude a whole lot more than it should, primarily nuxt.config.ts, modules, and server code.

Additional context

From what I can tell the bug was introduced with #35079. The newly merged tsConfig.exclude does probably not just include the settings from the Nuxt config, but also all the default excludes for the tsconfig.app.json.

貢獻者指南