FAQ
FAQ copied to clipboard
prisma.yml output directive needs .graphql extension
Describe the bug When installing:
-
npm run new_service
callsprisma deploy
- the new
prisma
module errors out duringprisma deploy
, saying that the output inprisma.yml
needs a.graphql
extension:
▸ Error: output for generator graphql-schema should be a .graphql-file. Please change the output property for this generator in
▸ prisma.yml
To Reproduce Install according to your own instructions here, step 6
Expected behavior
The new_service
script can't handle errors, so breaks non-gracefully, which means the default config doesn't get applied.
I would expect that this does not crash.
Additional context
This is fixed by simply replacing the output
line in prisma.yml
with output: ../src/generated/prisma.graphql