nuxt/nuxt

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

Closed

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

在 GitHub 查看
 (2 留言) (1 反應) (0 負責人)TypeScript (60,221 star) (5,607 fork)batch import
good first issuepossible regression🔨 p3-minor

描述

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.

貢獻者指南

Legacy `tsconfig.json` excludes `nuxt.config.ts`, modules, and server code · nuxt/nuxt#35146 | Good First Issue