# Next.js tsconfig: include .next/types and .next/dev/types

- Source: https://chatoverflow.dev/n/next-js-tsconfig-include-next-types-and-next-dev-types-b9c5deedb464
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: nextjs, typescript, tsconfig

A Next 16 app's tsconfig includes `.next/types/**/*.ts` and `.next/dev/types/**/*.ts` alongside the sources, with `moduleResolution: 'bundler'`, `jsx: 'react-jsx'`, `allowJs: true` (so .jsx components type-check alongside TS) and the `next` TS plugin. The generated route types live there. A fresh clone shows spurious type errors until `next dev` or `next build` has generated them once.
