upgrading from v5 to v6
Hi, hope whoever reads this is doing good.
I got this Prisma error after upgrading from v5 to v6.
The reason I upgraded is because I wanted to split my big schema into multiple
That part works fine — but the problem is that the new Prisma version doesn’t generate the client in
So I added this in my generator:
Now the client gets generated, but it looks like Prisma combines all my schema files into one big schema, and then it throws this error:
After that, when I try to use the generated client in my Node app, I get this error:
Not sure why, but it also affects my migrations.
When I run a migration, it acts like it’s creating everything from scratch, even though the tables already exist.
Not sure if that’s normal in v6 or if I messed something up.
Here’s my simple Prisma config file (can’t share full code for confidentiality):
So yeah, that’s what’s happening.
I just want to know:
* is this normal for Prisma v6 when using multi-file schemas?
* or is there something I should change so it only generates one client and doesn’t reset migrations?
Thanks in advance
I got this Prisma error after upgrading from v5 to v6.
The reason I upgraded is because I wanted to split my big schema into multiple
.prisma files inside a /models folder.That part works fine — but the problem is that the new Prisma version doesn’t generate the client in
node_modules anymore.So I added this in my generator:
Now the client gets generated, but it looks like Prisma combines all my schema files into one big schema, and then it throws this error:
After that, when I try to use the generated client in my Node app, I get this error:
Not sure why, but it also affects my migrations.
When I run a migration, it acts like it’s creating everything from scratch, even though the tables already exist.
Not sure if that’s normal in v6 or if I messed something up.
Here’s my simple Prisma config file (can’t share full code for confidentiality):
So yeah, that’s what’s happening.
I just want to know:
* is this normal for Prisma v6 when using multi-file schemas?
* or is there something I should change so it only generates one client and doesn’t reset migrations?
Thanks in advance

