Skip to content

prisma.yml output directive needs .graphql extension #257

@sv-laurent

Description

@sv-laurent

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions