FAQ icon indicating copy to clipboard operation
FAQ copied to clipboard

prisma.yml output directive needs .graphql extension

Open sv-laurent opened this issue 4 years ago • 0 comments

Describe the bug When installing:

  • npm run new_service calls prisma deploy
  • the new prisma module errors out during prisma deploy, saying that the output in prisma.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

sv-laurent avatar Feb 03 '20 17:02 sv-laurent