Prisma

P

Prisma

The official Discord server of Prisma! Find us online at prisma.io

Join

despite

Error: Could not resolve @prisma/client despite the installation that we just tried.
Please try to install it by hand with pnpm add @prisma/client and rerun pnpm dlx "prisma generate" :pray:.
Error: Could not resolve @prisma/client despite the installation that we just tried.
Please try to install it by hand with pnpm add @prisma/client and rerun pnpm dlx "prisma generate" :pray:.
how to fix this?...

Module '"prisma"' has no exported member 'PrismaConfig'

docs have this import? what am i missing?...
No description

PrismaClientOptions

I'm having trouble creating a service prisma in Nest js, i can't use PrismaClientOptions. is anyone experiencing the same thing as me? Using prisma version 6.8.2 & prismaclient 6.8.2...
No description

Prisma with `@cloudflare/vite-plugin`

Did somebody manage to run prisma with @cloudflare/vite-plugin ? I am trying use react-router with Cloudflare and no luck. I tried both prisma-client and prisma-client-js providers and it doesn't work.

extension not appearing when accessed

typescript doesnt pick up my prisma extension
No description

Can't deserialize datetime string from Postgres

I'm getting the following error:
Inconsistent column data: Conversion failed: expected a datetime string in column 'createdOn', found 2025-05-22 13:03:05.144-04
Inconsistent column data: Conversion failed: expected a datetime string in column 'createdOn', found 2025-05-22 13:03:05.144-04
...

db credentials

We’re building a secure Node.js/NestJS application using Prisma ORM with SQL Server as the backend. Due to our organization's security classification (similar to BIV2/BIV3), we are not allowed to store database credentials (username/password) in configuration files or environment variables.

P2022 : The column `colonne` does not exist in the current database.

The column is probably named 'colonne' because I'm French, but at no point in my code do I have a column named 'colonne' ``→ 56 await prisma.user.create( The column colonne` does not exist in the current database. at Zn.handleRequestError (---\node_modules@prisma\client\runtime\library.js:121:7459) ...

prisma generate for .mjs

Hi, Currently I want to generate with .mjs file but when I run npx prisma generate I getg this error ``` Generated file extension "mjs" is unexpected and may be a mistake. Expected one of: "ts", "mts", "cts"...

Prisma MCP server as a remote MCP server?

Is there any way that the prisma mcp server can run on a remote host that has me proxy requests to it so that I can pass it to say the OpenAI Responses API with my own API key so I can use it as a remote MCP like I can with Stripe/Hubspot and others?

Prisma ORM with SQLite - how to escape underscores in a query

Hello! I have a small web app set up and using Prisma to query a SQLite database and am running into some confusion. I'm doing a search based on a query string thus: ``` const results = await prisma.plotFlag.findMany({ where: {...

prisma optimize recommendations

hello, ive just started using prismaoptimize and im wondering how long it takes for thge recommendations to come through after a recording ends? Locally it was instant and i had 70+ of them, but in producation I have 0 recommendations after 10 minutes has passed?

"All data will be lost" ???

I don't understand this message. I thought I am using shadowDatabaseUrl to test things and not kill my regular database accidentally with a migration. Does this mean prisma wants to delete my regular database? Or just the shadow one? ``` Prisma Client (v6.8.2) % npx prisma migrate dev --name tenant...

ReferenceError: Must call super constructor in derived class before accessing 'this' or returning...

Hi there! I am using Prisma ORM to use PostgreSQL. Whenever I try to update a value, I get the following error: ``` ReferenceError: Must call super constructor in derived class before accessing 'this' or returning from derived constructor at new PrismaClientValidationError (/Users/mdgaziurrahmannoor/Programming/Projects/simplyFi/simplify-backend/src/generated/prisma/runtime/library.js:24:2253)...

Generated Client Duplicate errors

Prisma: 6.8.2 @Prisma/client: 6.8.2 IDE: Vistual Studio Code I have a mono-repo project, created two packages with different schemas that I will be using in my projects...
No description

NextAuth 5> with PrismaPostgres & Edge Middleware

Hi there, has anyone figured out how to get Prisma Postgres working with NextAuth 5? I am using accelerate ```js import { PrismaClient } from '@prisma/client' import { withAccelerate } from '@prisma/extension-accelerate'...

Prisma Postgres vs Accelerate with own Postgres

What advantages does Prisma Postgres give me, that I don't have when using my own Postgres in combination with Accelerate?

Backup does not work with heavy tables

Hi, I'm encountering an issue when trying to create a backup. 1. The error occurs with only one table, which has around 1.5 million records (Users) 2. I’ve already tried requesting a backup for just that specific table, but the error still persists...

ERROR: COPY to a file is not supported

I am working on a prisma postgres TEMP table, and want to export it for use on another server. I am using a SQL COPY command through prisma.$queryRawUnsafe(), the command is COPY "Meeting_temp" to '/tmp/fastLoadCopyMeeting_temp.2025-05-19T16:53:24.772+00:00.rows' This works fine on my Mac, but in AWS (AWS GNU Linux), I get a ...

Intellisense not working.

npx prisma generate ran successfully, but I don't get any suggestions when I call the Prisma instance. I have restarted TS server, the editor and ran the command many times but it still doesn't work. This is in prisma.schema:...