Prisma

P

Prisma

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

Join

Cannot find module '@prisma/client/runtime/query_compiler_bg.mysql.wasm on vercel

As above, using the query compiler, now my project cannot find the WASM File. before, it couldnt find the binary. This only happens on vercel, it's fine locally, and it's also fine on an EC2

Are deeply nested where clauses supported

Given the following example query: ``` const testitems = await tx.A.findMany({ where: { B: { some: {...

Error when building package that uses Prisma types

as i run my tsup build command, i get this error coming from generated prisma folder ``` Error: ImportEquals should have a literal source. 5 |...

Embed Prisma Studio not showing.

I successfully set up Embed Prisma Studio using Prisma Accelerate, but the tables do not display correctly. When I check the response of the/studio endpoint from Dev Tools, I think it is a display problem because data is returned normally. Next.js v15 Tailwind CSS v4...
No description

Memory leak problem

linux memory keep increasing /.prisma/client/query-engine-debian-openssl-3.0.x anyone facing this problem? im using expressjs...

Drift detected after making fields required

My db is cockroach. I added two models, ``` model Font { id String @id @default(uuid())...

need help with prisma studio core & react-router v7

how can i use prisma studio core with react-router v7 ( framework mode ) ?

Generating prisma to generated folder results in duplicate schema errors

This is driving me nuts, as you can see generated create another copy of my prisma schema and it results in a bunch of errors like in the pictures. Is there an easy solve, and also, even if Im bringing my own db, cna I used --no-engine flag? My currently not using the --no-engine flag.
No description

npx prisma generate --no-engine, breaking nextjs build

HI guys. Just started with accelerate + postgres. Reading the documentation we should be using npx prisma generate --no-engine to minize package size. However during the ci build (nextjs) after generate. We are seeing a error saying:
Error: ENOENT: no such file or directory, lstat '/home/runner/work/gauge-mono/gauge-mono/node_modules/.pnpm/@prisma+client@6.11.1_prisma@6.11.1_typescript@5.8.2__typescript@5.8.2/node_modules/.prisma/client/libquery_engine-debian-openssl-3.0.x.so.node'
Error: ENOENT: no such file or directory, lstat '/home/runner/work/gauge-mono/gauge-mono/node_modules/.pnpm/@prisma+client@6.11.1_prisma@6.11.1_typescript@5.8.2__typescript@5.8.2/node_modules/.prisma/client/libquery_engine-debian-openssl-3.0.x.so.node'
...

prisma query engine failing to download for local server?

I am attempting to run a local development server using the prisma dev command in a Nextjs project. When I set up the prisma environment and create this local server, and run prisma studio to check the status of it, I receive the following error:
Error: Couldn't download engine. URL: https://binaries.prisma.sh/all_commits/9b628578b3b7cae625e8c927178f15a170e74a9c/windows/query-engine.gz, status code: 404
Error: Couldn't download engine. URL: https://binaries.prisma.sh/all_commits/9b628578b3b7cae625e8c927178f15a170e74a9c/windows/query-engine.gz, status code: 404
What could be causing this? I tested this by setting up a Nextjs project using this guide: https://www.prisma.io/docs/guides/nextjs...

D1 Guide out of date?

Is the D1 guide still up to date? https://www.prisma.io/docs/guides/cloudflare-d1 I've got a repro here, which was created using the react router cloudflare template, then just followed that guide. Repo: https://github.com/WillSmithTE/prisma-d1...

Issues with difference between dev and production environment

In the dev environment, I can use the Supabase pooler connection URL with no params at all to make queries with my Prisma client. However using the same connection URL when my code is deployed results in a pooling error upon the code reaching the very first query:
``PrismaClientKnownRequestError Invalid prisma.user.findFirst()` invocation:...

SvelteKit and generated output directory

Hi, I'm building a SvelteKit app and we need to add a generated output directory. After adding the output line in the schema and generating, I'm getting tons of errors like the following: ```12:51:26 PM [vite] Error when evaluating SSR module /src/lib/server/db/documents.ts: |- TypeError: vite_ssr_import_3.cwd is not a function at C:\Users\Carter\Documents\GitHub\EMU\memo\src\lib\generated\prisma\client.ts:42:19...

queryCompiler and driverAdapter for local development

I am looking to make use of Prisma 6.11's new support for rust-free MySQL development through queryCompiler and driverAdapter preview features. In production we use PlanetScale for our database and deploy our application through CF workers and Vercel functions. For CF workers we need to use the rust-free edge client with the planetscale adapter. I have this mostly working, but I am trying to get parity with our local development environment which uses a MySQL db through docker. I thought I would be able to swap in the MariaDB adapter, but that doesn't seem to be working with my local db. Queries don't seem to fail, but everything returns null. Curious if anyone has a similar setup that is working....

Is there no accelerate client/extended client type?

Hi, With all the types Prisma provides via generation and all, there's got to be a TypeScript type for an extended (specifically accelerated) client, right? Right?! If not, what is the easiest way to make a type for it? I like typing everything I can....

Timed out fetching a new connection from the connection pooler (timeout: 10, limit: 9)

I am getting this upon my very first call to the data from prisma. My connection url is a supabase pooler.

Production and development env variables for generating client

I want a development env variable for when I run prisma generate so I keep it in a .env folder at the root. When in production though i want to use the environment variables provided by docker. Can I be sure the variable DATABASE_URL is being replaced with the production value If its still saying "Environment variables loaded from .env"

Prisma Optimize CommonJS Issue

See: https://discord.com/channels/937751382725886062/1146889757364850791/1392901347153678508 Really wanted to give optimize a shot, but running into issues getting it started. My package.json: ```...

Prisma 6.7.0 can't find tables after splitting schema into multiple files.

I have just upgraded to 6.7.0 and wanted to use the new prismaSchemaFolder feature, but after re-running generate and migrate it can't find the tables or I think they weren't even created because I don't see any in the prisma studio. My setup - Next.js 15 app router - My schema file is in prisma/schema.prisma and the my other .prisma files are in prisma/models/...
No description

Database down, failing with `Startup/auth proxy error`

My database cmcunrbcy000dvp0vb5u6myqx is currently down, all queries return errors, even the dashboard studio does not work. Tried restarting it but it did not help Any way to fix this issue?...