Skip to content

Commit 6476902

Browse files
authored
fix(frontend): downgrade to stable React 18 & Next.js 15 to resolve CI build error
The CI workflow was failing with 'Cannot read properties of undefined (reading ReactCurrentBatchConfig)' error. Root cause: Next.js 16.1.6 (unstable) with React 19 caused compatibility issues. Fix: - Downgraded Next.js from 16.1.6 → 15.1.6 (stable) - Downgraded React from 19.2.3 → 18.3.1 (stable with Next.js 15) - Downgraded React-DOM from 19.2.3 → 18.3.1 (to match React version) This should resolve all 3 CI build failures (#14, #15, #16).
1 parent 00b0d66 commit 6476902

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

frontend/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
},
1111
"dependencies": {
1212
"lucide-react": "^0.563.0",
13-
"next": "16.1.6",
14-
"react": "19.2.3",
15-
"react-dom": "19.2.3",
13+
"next": "15.1.6",
14+
"react": "^18.3.1",
15+
"react-dom": "^18.3.1",
1616
"recharts": "^3.7.0",
1717
"three": "^0.160.0",
1818
"@react-three/fiber": "^8.15.0",

0 commit comments

Comments
 (0)