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

10 Replies
You chose to debug with a human. They'll tinker with your query soon. If you get curious meanwhile, hop into
#ask-ai
for a quick spin!I have the same issue.
I fixed it but I am not currently at home to explain it for you š
When can I check back? I've been stuck for over 12 hours on this.
About an hour or two?
Alright, thank you.
Hey, @Jacob | idohtml.
Hey did you try passing a relative path like "./app/generated"?
Sorry I completely forgot to reply and I didn't even get a notice on this.
So what I did was I removed the
output =
completely and what happens then you run the npx prisma generate
cli is that when you generate your files in your node_modules
you will find a prisma
file with all the prisma needed code but if you want to have a specific output
you can always set that to output = "../generated/prisma/client"
and that will end up next to your app
router or in the root of the project.
You could also change this
to this
and that will give you a TS version from my understanding of the prisma client files.Here is a video from the Prisma YouTube channel that explains it very well.
https://www.youtube.com/watch?v=HKM4uTXS_Uw
Prisma
YouTube
NEW Prisma 6.6 - ESM Support, Migrations for D1, and More!
Prisma 6.6 is a huge release and is full of some great new features and long awaited improvements. This release brings support for ESM, the ability to use migratons with Cloudflare D1 and Turso, and some great new AI capabilities to improve your workflow.
š£ Release notes 6.6: https://github.com/prisma/prisma/releases/tag/6.6.0
Prisma + Cloud...
However you need to keep in mind that when you use the old way (removing the
output
) you are using an older way of doing things and in your console you will get this warning from prisma meaning it's highly recommended to have an output
or setting up an output
Maybe you could verify my statement here?
Tell me if I am correct or not?