nuxt/nuxt

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

Closed

#35146 opened on May 21, 2026

View on GitHub
 (2 comments) (1 reaction) (0 assignees)TypeScript (60,221 stars) (5,607 forks)batch import
good first issuepossible regression🔨 p3-minor

Description

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.

Contributor guide