omar-dulaimi / prisma-trpc-generator

Prisma 2+ generator to emit fully implemented tRPC routers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for Prisma 4.x

activemonkeys opened this issue · comments

Problem

Many thanks for providing this awesome package. I have been using it for some time with Prisma 3.15.2.

As it seems, upgrading to Prisma 4.0.0 results in an error when running npx prisma generate with this package installed.

What is needed to support Prisma 4.x and how can we help?

Alternatives

Currently, I'm generating the routers and schemas with the Prisma 3.15.2 version and porting it to a new Prisma 4.0.0 project by hand.

Hey @activemonkeys
Thanks for using my project, I appreciate it.

Yes, indeed there has been a breaking change in Prisma internals. It looked a minor change judging by the release notes.
I'm planning to dedicate some time to upgrade this generator and all other generators I have.

Hopefully soon enough.

Though if you feel adventurous, you could give it a go. Start by checking the release notes regarding Prisma's internals, that's where you would need to begin.

Done in https://github.com/omar-dulaimi/prisma-trpc-generator/releases/tag/0.2.0

Please give it a try, and report any issues you face separately :)