tylim88/Create-Prisma-App

Error: output for generator graphql-schema should be a .graphql-file

Closed this issue · 1 comments

rfdc commented

Great template, thanks a lot mate :)

I ran into this error:

▸ Error: output for generator graphql-schema should be a .graphql-file. Please change the output property
▸ for this generator in prisma.yml

-> Generator graphql-schema now outputs to a single file instead of a directory. That means you need to provide the full path including the file name to the generator. #3359

So the variable OUTPUT_FOLDER inside the files at .config needs to be changed to the following:
OUTPUT_FOLDER=../src/prodSchema/prisma.graphql

Hope that helps :)
cheers

glad you found this template useful

regarding the error, seem like it is breaking change from prisma v1.30 prisma/prisma#3359 (comment)

So I updated the template to v1.5.0 to fit the change 210ca6f

Thank you for your help!