3,733 questions
0
votes
0
answers
24
views
Delete route not working in project, throws prisma P5000 error
I am working on a blogging platform project. The project worked fine in deployment, but since I added the delete route, I can't even sign in. When I sign in, I get an http 404 error. The error only ...
-1
votes
0
answers
41
views
SyntaxError when testing express routes in jest + ts-jest with prisma
I am working on a messaging app. I am using express, prisma, typescript, and ts-jest for the backend. I am running into a problem with jest. this is the exact error I am getting when running my ...
3
votes
1
answer
61
views
NestJS + Prisma $extends() causes Prisma client to lose TypeScript autocomplete
I am building a NestJS project using Prisma ORM.
I created a PrismaService where I initialize the Prisma client and apply a custom extension (softDeleteExtension).
After doing that, TypeScript ...
0
votes
1
answer
108
views
Prisma is giving error while trying to migrate it or push to NeonDB
The datasource property url is no longer supported in schema files. Move connection URLs for Migrate to prisma.config.ts and pass either adapter for a direct database connection or accelerateUrl for ...
-2
votes
0
answers
61
views
Can't connect neondb postgresql database with my nestjs backend using Prisma(V 7.1.0) [closed]
so let me clear some things first
npx prisma migrate dev is working perfectly but when evey I am trying to hit the backend I am getting error like this
prisma:error undefined
[Nest] 17505 - 12/20/...
1
vote
0
answers
54
views
new client does not track new changes after being generated - prisma v7
performed all changes as per https://www.prisma.io/docs/orm/more/upgrade-guides/upgrading-versions/upgrading-to-prisma-7
except adding a driver-adapter since im using a transaction-pooler connection ...
Best practices
0
votes
0
replies
24
views
Query similar db tables with Prisma with the same query without an if-else block
Suppose I have several Postgresql database tables that have similar schemas and store similar data that is used in a react component "Subpanel" of a generic type T.
When querying Prisma from ...
2
votes
3
answers
2k
views
PrismaClientInitializationError: `PrismaClient` needs to be constructed with a non-empty, valid `PrismaClientOptions`:
I created schema.prisma and schema.prisma
schema.prisma:
generator client {
provider = "prisma-client"
engineType = "client"
output = "./generated/main"
}
...
3
votes
1
answer
87
views
Next.js 15 build fails on Windows during Azure deployment with EPERM symlink error using pnpm and standalone output
I’m trying to deploy a Next.js 15.2.4 application to Azure App Service, and my production build is failing locally on Windows with a symlink permission error.
Environment
OS: Windows 11
Framework: ...
0
votes
0
answers
70
views
Get error "Must call super constructor in derived class" NestJs Interceptor with Prisma ORM
For a NestJs application I'm trying to implement an AuditInterceptor. This interceptor needs to write an audit log to the database when someone logs in.
To have access to the database, I wrote a ...
-1
votes
1
answer
133
views
Error: Cannot find module '@/generated/prisma' [closed]
I am creating an gateway project in NodeJS, but for some reason my "auth-service/src/controllers/userController" is throwing an error showing module cannot be imported my prisma folder ...
0
votes
0
answers
36
views
Generic type for Prisma ORM to be define output based on include
I am writing a wrapper function for a model, but I want to make it as generic as possible. I intend to pass filters and includes as props, but this makes it harder to define the output accordingly.
...
-4
votes
1
answer
2k
views
Prisma 7 in Monorepo:“url is no longer supported in schema files”+“client engine requires adapter or accelerateUrl” — How to setup Classic Prisma ORM?
I'm upgrading to Prisma 7 inside a Turborepo monorepo, and I’m trying to use the classic Prisma ORM client (not Accelerate).
My folder structure looks like:
packages/
db/
prisma/
schema....
1
vote
1
answer
205
views
Prisma V7 Error: Client Password must be a string
I am sorry if it's asked already, I just migrated to Prisma V7 and am stuck with an unsolvable error.
SCRAM-SERVER-FIRST-MESSAGE: client password must be a string
The server runs fine, Though the ...
0
votes
0
answers
220
views
Prisma Client not initializing with v7 and MongoDB, despite running prisma generate
I am attempting to set up a Node.js Express application using Prisma ORM v7.0.1 and a MongoDB database. I keep running into an Error: @prisma/client did not initialize yet. Please run "prisma ...