P
Prisma2w ago
secre

Generated Client Duplicate errors

Prisma: 6.8.2 @Prisma/client: 6.8.2 IDE: Vistual Studio Code I have a mono-repo project, created two packages with different schemas that I will be using in my projects After generating client and opening schema.prisma I have errors about duplicated values inside schema, screenshot: Both packages generated clients doesn't intersect with each other, both generated clients lay in different folders. As I'm understand it's just not major error because I can use generated clients, all work fine but those errors are annoying. I think that they occure because of prisma server.
No description
3 Replies
Nurul
Nurul2w ago
Hey! Have you specified output path in your schema.prisma file? Can you temporarily remove it and check if the error goes away?
secre
secreOP2w ago
Hi! Yes, output is here. And removing it doesn't get rid of the errors
generator client {
provider = "prisma-client-js"
output = "./generated/client"
}
generator client {
provider = "prisma-client-js"
output = "./generated/client"
}
Nurul
Nurul4d ago
Is your project open source? If yes, can you share a link to the repository so that I can investigate?

Did you find this page helpful?