Vercel Vite, cannot find type definition for "vite/client"
I'm trying to deploy to vercel using vite but I keep getting the following error: error TS2688: Cannot find type definition file for 'vite/client'. The file is in the program because: Entry point of type library 'vite/client' specified in compilerOptions Error: Command "npm run build" exited with 2 I've tried adding: "typeRoots": ["./node_modules/@types/"] And installing different vite versions: v4.4.0 and v4.1 but the problem continues. Here's my client-side package.json, any ideas: { "compilerOptions": { "paths": { "@/*": ["./src/*"] }, "target": "ESNext", "useDefineForClassFields": true, "l
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.