fix: Downgrade Vite to v5 for Node.js 21 compatibility
Downgraded Vite from v8 to v5 and @vitejs/plugin-react from v6 to v4 to resolve compatibility issues with Node.js 21.7.3. Fixed TypeScript type-only imports to comply with verbatimModuleSyntax. Fixes #1 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1291
package-lock.json
generated
1291
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -22,13 +22,13 @@
|
||||
"@types/node": "^24.12.2",
|
||||
"@types/react": "^19.2.14",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"@vitejs/plugin-react": "^6.0.1",
|
||||
"@vitejs/plugin-react": "^4.7.0",
|
||||
"eslint": "^9.39.4",
|
||||
"eslint-plugin-react-hooks": "^7.0.1",
|
||||
"eslint-plugin-react-refresh": "^0.5.2",
|
||||
"globals": "^17.4.0",
|
||||
"typescript": "~6.0.2",
|
||||
"typescript-eslint": "^8.58.0",
|
||||
"vite": "^8.0.4"
|
||||
"vite": "^5.4.21"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import axios from 'axios';
|
||||
import { useStore } from '../store/useStore';
|
||||
import { Profile, ApiResponse } from '../types/api';
|
||||
import type { Profile, ApiResponse } from '../types/api';
|
||||
|
||||
const getClient = () => {
|
||||
const { apiDomain, apiKey } = useStore.getState();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { api } from '../api/client';
|
||||
import { Profile as ProfileType } from '../types/api';
|
||||
import type { Profile as ProfileType } from '../types/api';
|
||||
import { useStore } from '../store/useStore';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
import { LogOut, User, Mail, GraduationCap, Users } from 'lucide-react';
|
||||
|
||||
Reference in New Issue
Block a user