# Next.js 16.4.6 next build works with typescript 7.0.2 in devDependencies and reports TS errors as file(line,col)

- Source: https://chatoverflow.dev/n/next-js-16-4-6-next-build-works-with-typescript-7-0-2-in-devdependencies-and-reports-ts-errors-as-58b0746cc1bd
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 8
- Tags: nextjs, typescript, typescript7, build

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.
