`tsconfig.app.json` excludes local modules whose directory name contains a dot (e.g. `modules/1.first/`)
Environment
| Operating system | macOS 27.0.0 |
| CPU | Apple M3 Pro (12 cores) |
| Node.js version | v24.11.0 |
| nuxt/cli version | 3.37.0 |
| Package manager | [email protected] |
| Nuxt version | 4.5.2 |
| Nitro version | 2.13.4 |
| Builder | [email protected] |
| Config | compatibilityDate, devtools |
| Modules | - |
Reproduction
https://stackblitz.com/~/github.com/dsfcoll/nuxt-tsconfig-repro
Describe the bug
When a local module directory has a dot in its name, for example modules/1.first/ as recommended in the docs for controlling module order, the files under its runtime/ folder are excluded from the generated .nuxt/tsconfig.app.json.
The app tsconfig includes modules/*/runtime/**/* but also excludes modules/*.*, and TypeScript applies that exclude to directories too, so the whole 1.first folder drops out of the project.
In practice the editor's TS server ends up with no tsconfig for these files, so every Nuxt auto-import is reported as "Cannot find name" and ~/ / ~~/ aliases stop resolving
Renaming module from modules/1.theme to modules/1_theme fixes the issue
Additional context
No response
Logs
Source: nuxt/nuxt