Prisma

P

Prisma

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

Join

Prisma with nuxt build blocking issues

Whenever I run any command like dev or build, the Prisma/Nuxt module prompts me with a question. This is blocking my build, and because of that, I can't even deploy it on Vercel. Is there a way to skip this prompt or handle it properly?...
No description

ReferenceError: __dirname is not defined in ES module scope

I am using Prisma Client with SvelteKit and I am getting this error on builds/preview. I have tried looking up solutions but I could not find a solution. I saw someone saying it should be fixed in Prisma 6.7. Is this true? This issue is preventing my application from working once it is built.

Problem creating a new user to my database

Hello so I'm using prisma and nodejs but I'm facing a little issue when I try to create a new user into my db. The error arises from here: ```js import prisma from "@/lib/prisma";...

Connecting from something like dbeaver

Hi there, I would like to connect to my Prisma postrgres db via dbeaver. How/ where can I get a connection string that has the normal postrgres structure like postgresql://postgres:postgres@127.0.0.1:5432 Thanks...

Anyone have Prisma ORM working with React Router 7? I get Internal server error

Following the documentation here https://www.prisma.io/docs/guides/react-router-7 except using my own postgres instance rather than hosted cloud version. But as soon as I use import prisma from "~/lib/prisma" in a route I get [vite] Internal server error: exports is not defined on ...app/generated/prisma/index-browser.js:4:23). RR 7.5.0. Prisma 6.6.0.

output in schema

the output = "app/generated/prisma/client" seems to be very wrongly placed in the project structure whenever I simply run the following command of pnpm dlx prisma generate and I have actually no clue to why it's doing this. Seems to me like this is a bit of an issue. Could someone please help me out here a little bit to furthermore understand exactly what's going on? I was used to just simply have this structure prior to v7 ```ts generator client {...
No description

Running into a strange issue

```→ λ api ── aws:apigateway:v2:post:/createWorkflow ─ Error creating workflow: PrismaClientInitializationError: Prisma Client could not locate the Query Engine for runtime "darwin-arm64". This is likely caused by a bundler that has not copied "libquery_engine-darwin-arm64.dylib.node" next to the resulting bundle. Ensure that "libquery_engine-darwin-arm64.dylib.node" has been copied next to the bundle or in "node_modules/.prisma/client"....

Extremely strange behavior

I'm not sure what to call this. All addresses are stored in the address table. To distinguish mailing or physical addresses, their IDs are placed into the respective tables which are then reference by student. When a student has equivalent mailing and physical addresses, the function above in my NestJS application returns undefined for the address_physical within the Student object and I have no idea why. I suspect that because there are name similarities or the IDs to the mailing and physical addresses are the same causes Prisma to go haywire. The even weirder thing is that when I console.log the address_physical.address, it is very clearly defined (although the same as mailing_address, which is intended). I have checked my NestJS entity models and there are no issues there either....

Prisma Data Platform visualize data

anyone know how to use prisma studio on the Prisma data platform, it's just kinda blank for me. tables exist in the db and so does data tried to use an external dbms but the prisma accelerate connection string kinda blocks me from using anything else and I have no way of getting the direct connection string? any solutions for this?...
No description

Is there a way to differently parse DateTime and db.Date when reading from Postgres

Both DateTime and db.Date are being parsed into a full Date in js. This causes unwanted behavior since the Day will shift for negative Timezones and hand-picking the affected fields for differenting handling is not a viable solution for me. I'd like a generic way to apply a different parsing strategy for different Database types...

Prisma & Store Procedures

Hello everyone, Does Prisma support calls to stored procedures? If so, could someone explain how to do it or share a relevant link, article, or repository with guidance?. PD: I use Postgres...

Having trouble connecting Prisma to Aurora AWS

running into error ``✖ Introspecting based on datasource defined in prisma/schema.prisma Error: P1001 Can't reach database server at postgres:5432`...

Prisma playground release date

Hi everyone, we are eagerly awaiting the release of the upgraded Prisma playground. When will it be available?

Eslint errors

After adding the generator client { provider = "prisma-client-js" output = "./prismaGenerated/client" }...

Relationship issue

Hey, I'm probably being super duper stupid here, but I am new to Prisma and I'm missing something. I have the schema: ```js model Ticket { id BigInt @id...

Opened PR to add ESM support to `@prisma/instrumentation`

Hi, I am back with another PR to the @prisma/instrumentation package: https://github.com/prisma/prisma/pull/26918 The package currently not shipping in ESM is currently blocking us from auto-instrumenting prisma in the Sentry SDK. It fixes a long-standing issue. Lemme know what you think....

'Too many clients' error when using NestJS and Jest even with a singleton Service

Is there a canonical example of how to create a PrismaService that can be used with Jest to do integration testing? I'm getting 'too many client' errors even with a PrismaService that uses a global client and using --runInBand. Does anybody have a exmaple of how to configure a PrismaService to use with NestJS and Jest?...

has no exported member error after updating to 6.6.0

I updated to version 6.6.0 and now I'm getting this error
No description

Hello I keep getting an error that I'm stuck on

```/home/thomas/Dev-Academy-Backup/plover-brief-voting/node_modules/.prisma/client/default.js:43 throw new Error('@prisma/client did not initialize yet. Please run "prisma generate" and try to import it again.'); ^ Error: @prisma/client did not initialize yet. Please run "prisma generate" and try to ...