fix: downgrade @vitejs/plugin-react to ^5 (compatible with vitest@4/vite@6), add .npmrc

This commit is contained in:
CanbiZ (MickLesk)
2026-03-17 14:00:05 +01:00
parent c62a017357
commit 39266d2d38
2 changed files with 30 additions and 29 deletions

1
.npmrc Normal file
View File

@@ -0,0 +1 @@
legacy-peer-deps=true

View File

@@ -25,16 +25,16 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@prisma/adapter-better-sqlite3": "^7.3.0",
"@prisma/client": "^7.3.0",
"@prisma/adapter-better-sqlite3": "^7.5.0",
"@prisma/client": "^7.5.0",
"@radix-ui/react-dropdown-menu": "^2.1.16",
"@radix-ui/react-slot": "^1.2.4",
"@t3-oss/env-nextjs": "^0.13.10",
"@tailwindcss/typography": "^0.5.19",
"@tanstack/react-query": "^5.90.21",
"@trpc/client": "^11.8.1",
"@trpc/react-query": "^11.8.1",
"@trpc/server": "^11.10.0",
"@trpc/client": "^11.13.4",
"@trpc/react-query": "^11.13.4",
"@trpc/server": "^11.13.4",
"@types/react-syntax-highlighter": "^15.5.13",
"@types/ws": "^8.18.1",
"@xterm/addon-fit": "^0.11.0",
@@ -42,32 +42,32 @@
"@xterm/xterm": "^6.0.0",
"axios": "^1.13.6",
"bcryptjs": "^3.0.3",
"better-sqlite3": "^12.6.2",
"better-sqlite3": "^12.8.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cron-validator": "^1.4.0",
"dotenv": "^17.2.3",
"dotenv": "^17.3.1",
"jsonwebtoken": "^9.0.3",
"lucide-react": "^0.563.0",
"next": ">=16.1.5",
"lucide-react": "^0.577.0",
"next": ">=16.1.7",
"node-cron": "^4.2.1",
"node-pty": "^1.1.0",
"pocketbase": "^0.26.8",
"react": "^19.2.3",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"react-markdown": "^10.1.0",
"react-syntax-highlighter": "^16.1.0",
"react-syntax-highlighter": "^16.1.1",
"refractor": "^5.0.0",
"remark-gfm": "^4.0.1",
"server-only": "^0.0.1",
"strip-ansi": "^7.1.2",
"strip-ansi": "^7.2.0",
"superjson": "^2.2.6",
"tailwind-merge": "^3.4.0",
"tailwind-merge": "^3.5.0",
"ws": "^8.19.0",
"zod": "^4.3.5"
"zod": "^4.3.6"
},
"devDependencies": {
"@tailwindcss/postcss": "^4.1.18",
"@tailwindcss/postcss": "^4.2.1",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@testing-library/user-event": "^14.6.1",
@@ -78,23 +78,23 @@
"@types/node-cron": "^3.0.11",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^5.1.2",
"@vitest/coverage-v8": "^4.0.17",
"@vitest/ui": "^4.0.17",
"baseline-browser-mapping": "^2.9.15",
"eslint": "^9.39.2",
"eslint-config-next": "^16.1.6",
"jsdom": "^27.4.0",
"next": ">=16.1.5",
"postcss": "^8.5.6",
"@vitejs/plugin-react": "^5.0.0",
"@vitest/coverage-v8": "^4.1.0",
"@vitest/ui": "^4.1.0",
"baseline-browser-mapping": "^2.10.8",
"eslint": "^10.0.3",
"eslint-config-next": "^16.1.7",
"jsdom": "^29.0.0",
"next": ">=16.1.7",
"postcss": "^8.5.8",
"prettier": "^3.8.1",
"prettier-plugin-tailwindcss": "^0.7.2",
"prisma": "^7.3.0",
"tailwindcss": "^4.1.18",
"prisma": "^7.5.0",
"tailwindcss": "^4.2.1",
"tsx": "^4.21.0",
"typescript": "^5.9.3",
"typescript-eslint": "^8.54.0",
"vitest": "^4.0.17"
"typescript-eslint": "^8.57.1",
"vitest": "^4.1.0"
},
"ct3aMetadata": {
"initVersion": "7.39.3"
@@ -107,4 +107,4 @@
"prismjs": "^1.30.0",
"hono": ">=4.11.7"
}
}
}