I updated all my dependencies and copied the typescript-auth (of the Prisma examples) while using a local docker container as the prisma endpoint.
Using "prisma deploy" runs "prisma generate" sucessfully but "npx nexus-prisma-generate" fails and logs the error "No valid 'prisma-client-dir' was found". The prisma-client folder is created sucessfully as well (../src/generated/prisma-client/).
I went through all the recent changes of the prisma exaples and can't find a solution to my problem. I assume there's something wrong with either the example or nexus prisma.
Hi 馃憢,
Would you mind showing me what args are you passing to nexus-prisma-generate?
Thanks 馃檶
Have you tried
npx nexus-prisma-generate "./src/generated/prisma-client" "./src/generated/nexus-prisma.ts"
Working!
PS: graphql-auth prisma exemple uses "nexus": "0.9.2".
Works like a charm! The prisma example was updated and they forgot to update the prisma.yml and add the 2 new arguments. That lead to my confusion. I notified them too and they fixed the issue as well. Thank you for helping!
Most helpful comment
Have you tried
npx nexus-prisma-generate "./src/generated/prisma-client" "./src/generated/nexus-prisma.ts"