#qwik + prisma + pg + vercel = 500 internal server error

4 messages · Page 1 of 1 (latest)

fossil elm
#

Hi, is there anyone using Qwik with Prisma (Postgres DB) on Vercel?
I’ve tried various solutions, the latest one with Neon, but I can’t get it to work on Vercel.
The last error I got is

TypeError: zs.PrismaClient is not a constructor at (@qwik-city-plan.js:19:618) at (q-BzYlbq_B.js:10:6025) at (q-BzYlbq_B.js:10:5958) 

Thanks

blissful nymph
#

did you create some sort of singleton for the PrismaClient ?

#

prisma generate is correct and excecuted?

#

on localhost with dev works ok?
on localhost with preview the compilation is ok without errors? and works?