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.


5 Replies
You're in no rush, so we'll let a dev step in. Enjoy your coffee, or drop into
#ask-ai if you get antsy for a second opinion!@Prisma AI Help Can you answer this?
Hey!
You seem to be using
prisma-client-js generator, can you try using the new prisma-client generator instead and check if you get the same errors?I have been switching back and forth, each giving me its own unique errors. I will try switching again and showing the errors here
Also I am using zod-prisma-types and I don't think it plays well with the new engine
So i switched and everything seems okay with types and such except I get a successful build but with these messages in the build
simple fix here: do not generate into the same folder as the .schema file. instead, generate up a level ("../generated..." )