PrismaP
Prisma4mo ago
14 replies
cgm

Issue deploying on Cloudflare Workers with Prisma Accelerate + Prisma Postgres

Hi, when I am trying to deploy on Clouldflare Workers with Prisma Accelerate and Prisma Postgres. I am getting the following issues in the build and then when navigating to the page:

In the build:

...
10:14:06.784    ✓ built in 4.13s
10:14:06.784    vite v7.1.9 building SSR bundle for production...
10:14:06.787    transforming...
10:14:09.949    ".prisma/client/default" is imported by ".prisma/client/default?commonjs-external", but could not be resolved – treating it as an external dependency.
10:14:16.606    ✓ 3819 modules transformed.
10:14:17.314    rendering chunks...
...


Error when viewing deployed:

{"status":500,"unhandled":true,"message":"HTTPError"}


and testing the Worker Clouldflare side:

assets/worker-entry-0E0HEGVa.js:19481 HTTPError: No such module "assets/.prisma/client/default".
  imported from "assets/db-SP2WOBxu.js"
Caused by: Error: No such module "assets/.prisma/client/default".
  imported from "assets/db-SP2WOBxu.js"
Was this page helpful?