Hi, Hope you'll doing well I'm using cloudflare w...
# orm-help
r
Hi, Hope you'll doing well I'm using cloudflare workers, and running to a strange issue, as it is implemented as the docs mentions below https://www.prisma.io/docs/guides/deployment/deployment-guides/deploying-to-cloudflare-workers The error mentioned is "Error: PrismaClient is unable to be run in the browser. In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues" - We're using dataproxy client using the command "PRISMA_CLIENT_ENGINE_TYPE=dataproxy npx prisma generate" - Rollup config which adds the part of alias "'@prisma/client$': require.resolve('@prisma/client')," - Prisma schema & Prisma Data Platform - Env key for both shadow db & db url is there - Locked ts loader at 8.3.0 as suggested Any recommendations what else can it be the issue?
โœ… 1
n
Hey ๐Ÿ‘‹ The error suggests that you are using Prisma in frontend which isnโ€™t supported. Are you using Next.js? Where are you instantiating your PrimaClient?
r
Hi, hope you're well! We're using Cloudflare workers as mentioned above, although seems we've sorted the issue, yet requires some manual work. We will post the solution to help apply the fix. The issue was opened on Github on https://github.com/prisma/prisma/issues/1298. Cheers
n
That would be great! Thanks ๐Ÿ™Œ