zod-prisma-types and prisma-zod-generator BOTH fail to generate

Just installed both zod-prisma-types and prisma-zod-generator
$ prisma db push

Running generate... (Use --skip-generate to skip the generators)
Error: Generator at zod-prisma-types could not start:

/bin/sh: zod-prisma-types: command not found
$ prisma db push

Running generate... (Use --skip-generate to skip the generators)
Error: Generator at zod-prisma-types could not start:

/bin/sh: zod-prisma-types: command not found
and removing that one and subbing in prisma-zod-generator i get:
Running generate... (Use --skip-generate to skip the generators)
Error: Generator at prisma-zod-generator could not start:

/bin/sh: prisma-zod-generator: command not found
Running generate... (Use --skip-generate to skip the generators)
Error: Generator at prisma-zod-generator could not start:

/bin/sh: prisma-zod-generator: command not found
have a feeling this has to do with my t3 install anyone have any idea how to debug?
8 Replies
Brendonovich
Brendonovich2y ago
Do u need to put pnpm or whatever in front of them? It may be trying to execute the generators as cli commands rather than as npm package scripts
fotoflo
fotoflo2y ago
Hi @Brendonovich thanks for the response, sorry for teh slow reply im using npm... in front of them where? BOOM
fotoflo
fotoflo2y ago
fotoflo
fotoflo2y ago
it worked thank you!!
Brendonovich
Brendonovich2y ago
Ayyy nice
fotoflo
fotoflo2y ago
one more question, if you're familiar with https://github.com/chrishoermann/zod-prisma-types. -- how do you get the schemas into nextJs? nmd i found them in my git status
JacobMGEvans
JacobMGEvans2y ago
Glad this all got resolved!
fotoflo
fotoflo2y ago
Made a PR to the documentation
Want results from more Discord servers?
Add your server