mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-10-30 16:16:19 +00:00
`npm run typecheck` failed with 8 TS2307 errors from Next's generated route validators referencing old page paths (e.g. calendar/page.js) after routes moved to catch-all segments. Two causes: - The production validator (.next/types) was stale. Prepend `next typegen` so `tsc` always runs against freshly generated route types. - The dev validator (.next/dev/types) is a turbopack-dev-only artifact that is absent from clean/CI checkouts and goes stale locally. `next typegen` force-re-adds it to tsconfig `include`, so exclude it instead (exclude overrides include), leaving route typing to the maintained .next/types. tsc still catches real type errors; verified `npm run typecheck` is clean and idempotent.
46 lines
769 B
JSON
46 lines
769 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2017",
|
|
"lib": [
|
|
"dom",
|
|
"dom.iterable",
|
|
"esnext"
|
|
],
|
|
"allowJs": true,
|
|
"skipLibCheck": true,
|
|
"strict": true,
|
|
"noEmit": true,
|
|
"esModuleInterop": true,
|
|
"module": "esnext",
|
|
"moduleResolution": "bundler",
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"jsx": "react-jsx",
|
|
"incremental": true,
|
|
"plugins": [
|
|
{
|
|
"name": "next"
|
|
}
|
|
],
|
|
"paths": {
|
|
"@/*": [
|
|
"./*"
|
|
]
|
|
}
|
|
},
|
|
"include": [
|
|
"next-env.d.ts",
|
|
"**/*.ts",
|
|
"**/*.tsx",
|
|
".next/types/**/*.ts",
|
|
".next/dev/types/**/*.ts"
|
|
],
|
|
"exclude": [
|
|
"node_modules",
|
|
"repos",
|
|
"examples",
|
|
"integration",
|
|
".next/dev/types"
|
|
]
|
|
}
|