Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prisma.yml output directive needs .graphql extension #257

Open
sv-laurent opened this issue Feb 3, 2020 · 0 comments
Open

prisma.yml output directive needs .graphql extension #257

sv-laurent opened this issue Feb 3, 2020 · 0 comments

Comments

@sv-laurent
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant