Skip to content

Commit 60c1f1f

Browse files
pacuclaude
andcommitted
Update tsconfig.json for Next.js 16.2.4 compatibility
Next.js auto-applied mandatory changes on first run: - jsx changed from "preserve" to "react-jsx" (React automatic runtime) - Added ".next/dev/types/**/*.ts" to include paths Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 37d9a78 commit 60c1f1f

1 file changed

Lines changed: 21 additions & 5 deletions

File tree

tsconfig.json

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
22
"compilerOptions": {
33
"target": "ES2017",
4-
"lib": ["dom", "dom.iterable", "esnext"],
4+
"lib": [
5+
"dom",
6+
"dom.iterable",
7+
"esnext"
8+
],
59
"allowJs": true,
610
"skipLibCheck": true,
711
"strict": true,
@@ -11,17 +15,29 @@
1115
"moduleResolution": "bundler",
1216
"resolveJsonModule": true,
1317
"isolatedModules": true,
14-
"jsx": "preserve",
18+
"jsx": "react-jsx",
1519
"incremental": true,
1620
"plugins": [
1721
{
1822
"name": "next"
1923
}
2024
],
2125
"paths": {
22-
"@/*": ["./*"]
26+
"@/*": [
27+
"./*"
28+
]
2329
}
2430
},
25-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "next.config.js", "app/layout.jsx"],
26-
"exclude": ["node_modules"]
31+
"include": [
32+
"next-env.d.ts",
33+
"**/*.ts",
34+
"**/*.tsx",
35+
".next/types/**/*.ts",
36+
"next.config.js",
37+
"app/layout.jsx",
38+
".next/dev/types/**/*.ts"
39+
],
40+
"exclude": [
41+
"node_modules"
42+
]
2743
}

0 commit comments

Comments
 (0)