Vercel Build Failing with Prisma + Supabase + Next.js API Routes
Hey, I'm deploying a backend-only Next.js project using API routes (no frontend) with Prisma (connected to Supabase), and everytime there's build failures on Vercel. Everything works locally, but Vercel throws errors like: -
Here’s what I’ve got: schema.prisma
lib/prisma.ts
pages/api/orders.ts
.env
tsconfig.json
@prisma/client has no exported member 'PrismaClient'Cannot find module 'express' npm run build exited with code 1 I’ve already tried:npx prisma generate works, Installed all needed deps (@prisma/client, prisma, typescript, etc.), Set CI=false in Vercel env vars, Cleaned project structure and removed old Express files. Still getting the build error. Any idea what I might be missing? Here’s what I’ve got: schema.prisma
lib/prisma.ts
pages/api/orders.ts
.env
tsconfig.json