Nexus-plugin-prisma: npx nexus-prisma-generate fails "no valid 'prisma-client-dir' was found"

Created on 31 Jan 2019  路  5Comments  路  Source: graphql-nexus/nexus-plugin-prisma

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.

Most helpful comment

Have you tried
npx nexus-prisma-generate "./src/generated/prisma-client" "./src/generated/nexus-prisma.ts"

All 5 comments

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!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aqwert picture aqwert  路  3Comments

ryands17 picture ryands17  路  5Comments

narciero picture narciero  路  3Comments

adarnon picture adarnon  路  3Comments

antonbramsen picture antonbramsen  路  4Comments