Linter error - multi file schema
Since I use the multi file schema, the linter show this error for all the models + db and client :"The generator "client" cannot be defined because a generator with that name already exists." / The model "x" cannot be defined because a model with that name already exists.
How can I get rid of it ?
6 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!Can you show me your schema files?
Yes, here are the prisma schema folder, the prisma.config file and the main schema.prisma file where I added the generator and the datasource as recommended in the doc.



make a schema folder
prisma/schema put all the schema files here
make your prisma.config.ts like this
also you using the old generator
try this instead
Use Prisma ORM without Rust engines | Prisma Documentation
Learn how to use Prisma ORM without Rust engines
Updating to the new no-rust engine seemed to work. Thanks for your help