PrismaP
Prisma13mo ago
4 replies
Franco

Prisma 6.2 seems incompatible with Turso

I am getting both type and runtime errors when creating a prisma client with the libsql adapter.
Is this expected behaviour?

My project was working fine with Prisma ^5.16.2 and I decided to upgrade for the enums, but I'm not being able to query data. Migrations do work properly though

 ⨯ TypeError: Cannot read properties of undefined (reading 'bind')
    at Qi (/home/franco/Repos/el-menu/node_modules/@prisma/client/runtime/library.js:29:13296)
    at new t (/home/franco/Repos/el-menu/node_modules/@prisma/client/runtime/library.js:130:1230)
    at getPrismaSingleton (webpack-internal:///(rsc)/./src/utils/prisma.ts:21:12)
    at eval (webpack-internal:///(rsc)/./src/utils/prisma.ts:26:42)
    at (rsc)/./src/utils/prisma.ts (/home/franco/Repos/el-menu/.next/server/app/[locale]/404/page.js:1290:1)
    at __webpack_require__ (/home/franco/Repos/el-menu/.next/server/webpack-runtime.js:33:43)
    at eval (webpack-internal:///(rsc)/./src/auth.ts:20:71)
    at (rsc)/./src/auth.ts (/home/franco/Repos/el-menu/.next/server/app/[locale]/404/page.js:1063:1)
    at __webpack_require__ (/home/franco/Repos/el-menu/.next/server/webpack-runtime.js:33:43)
    at eval (webpack-internal:///(rsc)/./src/utils/auth/getActiveUser.ts:6:63) {
  type: 'TypeError',
  page: '/es/404'
}
image.png
Was this page helpful?