prisma-client provider can't be used with multiple generators
When running the
generate
command I get an error:
This is my main schema:
The issue is caused by the generator json
since when I remove it, it works normally, but I want to use this feature for JSON field type-safety.3 Replies
You selected the carefully hand-crafted route. A dev artisan will respond soon. Meanwhile, the
#ask-ai
channel awaits if you're curious!Hey 👋
The problem is that the "prisma-json-types-generator" is specifically designed to work with the traditional
prisma-client-js
generator, not the newer prisma-client
generator (in Early Access). This seems to be a compatibility issue between the two generators.
There is a feature request for it:
https://github.com/arthurfiorette/prisma-json-types-generator/issues/465GitHub
Support new "prisma-client" generator · Issue #465 · arthurfioret...
Prisma 6.6.0 introduces "prisma-client" instead of "prisma-client-js" https://github.com/prisma/prisma/releases/tag/6.6.0 generator client { provider = "prisma-client"...
thanks for the reply, I guess i'll downgrade to 6.5.0 and use the old prisma-client-js without generated directory since none of it is still ready