Skip to content

Commit 5b9c8a3

Browse files
vchaindzclaude
andcommitted
fix: Resolve React Query compatibility issue by downgrading to React 18
- Downgrade React from v19 to v18.3.1 for better library compatibility - Fix QueryClientProvider "createContext" error that was preventing app startup - Update @types/react and @types/react-dom to match React 18 - Remove unused React imports to clean up TypeScript warnings This resolves the critical runtime error: "Cannot read properties of undefined (reading 'createContext')" 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 794b474 commit 5b9c8a3

File tree

4 files changed

+62
-36
lines changed

4 files changed

+62
-36
lines changed

package-lock.json

Lines changed: 57 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@
3232
"comlink": "^4.4.2",
3333
"date-fns": "^4.1.0",
3434
"lucide-react": "^0.544.0",
35-
"react": "^19.1.1",
36-
"react-dom": "^19.1.1",
35+
"react": "^18.3.1",
36+
"react-dom": "^18.3.1",
3737
"react-router-dom": "^7.9.1",
3838
"recharts": "^3.2.1",
3939
"sql.js": "^1.13.0",
4040
"tailwind-merge": "^3.3.1"
4141
},
4242
"devDependencies": {
4343
"@eslint/js": "^9.35.0",
44-
"@types/react": "^19.1.13",
45-
"@types/react-dom": "^19.1.9",
44+
"@types/react": "^18.3.24",
45+
"@types/react-dom": "^18.3.7",
4646
"@vitejs/plugin-react": "^5.0.2",
4747
"autoprefixer": "^10.4.21",
4848
"better-sqlite3": "^12.2.0",

public/data/database.jsonic

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

public/data/database.jsonic.gz

-10 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)