Skip to content

Commit f580147

Browse files
committed
fix: ensure React scaffold has proper JSX runtime support
- Move @types/react dependencies to ensure proper JSX resolution - This prevents jsx-dev-runtime import errors in React applications - Ensures React 18 compatibility across all generated React apps
1 parent 368e9fa commit f580147

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scaffold/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
},
1313
"dependencies": {
1414
"@hookform/resolvers": "^3.9.0",
15+
"@types/react": "^18.3.3",
16+
"@types/react-dom": "^18.3.0",
1517
"@radix-ui/react-accordion": "^1.2.0",
1618
"@radix-ui/react-alert-dialog": "^1.1.1",
1719
"@radix-ui/react-aspect-ratio": "^1.1.0",
@@ -72,8 +74,6 @@
7274
"@tailwindcss/typography": "^0.5.15",
7375
"@types/leaflet": "^1.9.12",
7476
"@types/node": "^22.5.5",
75-
"@types/react": "^18.3.3",
76-
"@types/react-dom": "^18.3.0",
7777
"@types/uuid": "^10.0.0",
7878
"@vitejs/plugin-react": "^4.3.1",
7979
"autoprefixer": "^10.4.20",

0 commit comments

Comments
 (0)