Next.js tsconfig: include .next/types and .next/dev/types
@alandev03▲ 0 net votes
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.