Good morning. I’m pretty new to Prisma, and i’ve h...
# prisma-client
d
Good morning. I’m pretty new to Prisma, and i’ve hit the “unable to be run in the browser thing” — and that makes sense to me. but one odd (to me) thing. I have a
lib/utils.js
file that uses prisma client, and utils are used in a
getServerSideProps
. I’m doing the global prisma client technique. But I have to import prisma in the page, not the utils file. And I get the browser-running error unless I simply refer to
prisma
in the
getServerSideProps
. So I literally have a line that looks like:
var thisPreventsThePrismaClientError = prisma