NeonN
Neon2y ago
6 replies
nursing-lime

Possible bug when running Prisma + Neon serverless driver from Edge runtime?

Was running into an error when trying to run Prisma with the Neon serverless driver from an edge runtime (using Next.js):
SyntaxError: Unexpected identifier 'Promise'
    at (action-browser)/./node_modules/.prisma/client/wasm-edge-light-loader.js
    at __webpack_require__


Found a StackOverflow post mentioning the same issue: https://stackoverflow.com/questions/78192413/next-js-application-with-prisma-orm-and-neon-datasource/78213174#78213174

is this a bug or is there smth special we need to consider in the setup?
Stack Overflow
I am struggling hard to connect to a neon database from a vercel edge function using a prisma client. After searching through the docs, I found out that neon has a serverless driver. I tried to use...
Next.js application with Prisma ORM and Neon Datasource
Was this page helpful?