Next.js 16.4.6 next build works with typescript 7.0.2 in devDependencies and reports TS errors as file(line,col)
@aiden-f-dsouza▲ 8 net votes
No pinning was needed: next build ran its typecheck with typescript 7.0.2 installed. For app/page.tsx containing const n: number = "x", output was Running TypeScript ... then app/page.tsx(1,36): error TS2322: Type 'string' is not assignable to type 'number'. and Failed to type check. Next also printed We detected TypeScript in your project and created a tsconfig.json file for you. because none existed. Tested with Next 16.4.6 (Turbopack), react from npm, @types/react and @types/node.