Typing issues since V6 upgrade (with output)
I've recently upgraded to V6.7 and I'm having issues with typing. I'm using NextJS and I have my
schema.prisma
at the root of the project and my output path set to output = "generated"
. The app starts fine, db connections etc are all good and I see the generated folder is created.
The issue I have is that the app is not picking up changing to the schema - eg: I added a new column "feedback" and the app typing does not pick that up after restarting. Error: feedback' does not exist in type ...
. If i remove the output
prop everything works as expected with new tyopes being picked up.
I can see the /generated/schema.prisma
has the changes so maybe it's the location of the generated folder? ...Prisma Postrgres init CLI error
When I run
npx prisma@latest init --db
, I get this:
Error: {"error":"Authentication failed because the access token was expired"}...Prisma Type Error in latest version.
I am using nest.js with prisma. I have upgraded prisma(6.7.0) to the latest version. All of the prisma services are broken. It shows
and there is no suggestion for all of the defined models.
...
Property 'location' does not exist on type 'PrismaService'.ts(2339)
Property 'location' does not exist on type 'PrismaService'.ts(2339)
Why do i get the wrong type
```ts
export type ForumPostType = Prisma.ForumGetPayload<{
include: {
// where: {
// id: string;...
Prisma Client Package in NX
I have a monorepo created via NX. How do I create a package inside said repo that contains the prisma generated client? I would like to be able to share the code between my backend and frontend. Specifically I would like to use the generated enumerations in my frontend and the database client in the backend. Thanks.
Prisma + Serverless + Supabase
I'm trying to get Prisma up and running again on Vercel as I'm moving off Prisma Accelerate
I'm using Supabase (Postgres) as my database provider. However, I keep getting a lot of errors due to:
1. Not using prisma from
@prisma/client/edge
2. Not using Prisma Accelerate so my connection url doesn't start with prisma://
...About Security Model
Hi folks,
I need a database cache and because I use Prisma ORM Prisma Accelerate is very nice for it.
I investigated how to ensure security of Prisma Accelerate and found:
- API key: used from application to Prisma Accelerate...
bunx prisma init
Error: Cannot find module 'C:\Users\Damian\AppData\Local\Temp@prisma\cli-init@latest-1747432800000\node_modules@prisma\cli-init\dist\index.js' imported from C:\Users\Damian\Desktop\all-make\node_modules\prisma\build\index.js
bunx prisma init
Error: Cannot find module 'C:\Users\Damian\AppData\Local\Temp@prisma\cli-init@latest-1747432800000\node_modules@prisma\cli-init\dist\index.js' imported from C:\Users\Damian\Desktop\all-make\node_modules\prisma\build\index.js
Postgres INSERTs Reappearing After Termination — Advice?
Hey folks 👋 — I'm running into an issue with some INSERT INTO queries that keep showing up in pg_stat_activity as "active", even after I attempt to kill their backend PIDs using pg_terminate_backend().
I'm specifically targeting INSERT INTO operations on a particular table (let's call it KeywordInsight). I successfully terminate the processes (they return true), but when I immediately check again, the same PIDs show up as still "active", still running similar insert statements. This keeps looping and I'm unable to fully clear them out.
Has anyone seen this behavior before? Could it be:...
Alloydb to Prisma Datacloud
Hey, we plan to move our Postgres database from Alloydb to Prisma, but the only issue we have right now is the region. We need Australia, and Prisma only has Singapore, which I think is the closest.
My question is, if we use acceleration and just go ahead with Singapore, how much would that affect our performance?...
The requested module '@prisma/generator-helper' does not provide an export named 'generatorHandler'
Hi there! I am trying to write a custom generator but cannot get past the error above. It looks like prisma.schema is properly configured to call the generator but once inside the file where it is defined, an immediate
The requested module '@prisma/generator-helper' does not provide an export named 'generatorHandler'
is thrown.
VSCode takes me to the type declaration for generatorHandler when ctrl+clicking the import so VSCode at least recognizes it.
It looks like the @prisma/generator-helper package is deprecated in favor of @prisma/generator but examples using the new package appear to be non-existent . I have tried following along with the prisma-client-js code to replicate it but it looks pretty involved and I cannot seem to work it down to a minimum workable solution....Best way to handle errors
Hi, what is the best way to handle errors or non-existent values, like, is this case im blindly updating an record where the id is the id of the project, in the case of the id does not exist, prisma throw an P2025 error, that i can handle it on a try catch and return that no record has found, and nothing has been updated.
Or the other way, i can first make an query to find the project, and if he exist, i update it.
What is the common way, or the best way to use on this cases?...
Moving from rust to typescript
Hello. Can you tell me whether the engine code that generates psl and dml is remaining in Rust. I see that it is now compiled to WASM . Will these sources eventually end up in Typescript or remain in WASM? Just trying to understand the direction things are going.
Making findMany act like an inner join?
I'm just starting out with Prisma, so apologies in advance for any stupid questions! 😉
In SQL, the query below would return one row for each row in [prefs]. Users who had no rows in prefs would not show up. Prefs with no living users would not show up.
`
SELECT users.name, prefs.name, prefs.value...
Model not visible
I have this Schema for this discord bot im working on:
```prisma
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
...

TypedSQL in pipeline?
Hello!
I am currently switching my Express.js app from using the
prisma-client-js
to prisma-client
provider. Which means I generate my prisma files into /src/generated/prisma and then use them. Now I also needed a TypedSQL query so I use npx prisma generate --sql
to create the corresponting file in the "generated" dir (this dir is gitignored as instructed in the docs). Now my pipeline obviously fails, because in it, I dont have an active database connection, which makes me wonder:
- What is the recommended way of handling Prisma in a pipeline with the prisma-client
provider. Am I really expected to make a connection to a database, everytime a commit is pushed to the repo?
Thank you...Type safety with queries
Hi, I am using Primsa ORM, and I am having some problem with the type of the data returned from the query. For the types which can be a null value or string, it always returns as type string, but it can be null as well.
Here is my model:
```ts...
Create different environment with the Vercel Integration (Prisma Postgres)
Hey,
I'm using Prisma Postgres, it works great. I need to have a production and preview env. I can do it without the Vercel integration in /workspace, but i don't have the option when it's connected. How to do it? In the Starter Prisma Postgres Vercel plan they say we can use up to 10 databases.
Thank you !...

Error: P1001Can't reach database server at `mydomain:5432
1. The psql connection works fine (both pooled and direct)
2. Prisma db pull works with DEBUG=prisma:* but fails normally
I have this problem from my local machine only. it works from server.
...
