Does anyone have an idea how to debug this? ```pr...
# orm-help
k
Does anyone have an idea how to debug this?
Copy code
prisma generate
Generating schema 27ms
 ▸    Syntax Error: Expected Name, found  }
😥 1
d
Please use export DEBUG=*
Then run the command..
k
I still have no idea where to look for the error.
d
An underlying GraphQL SDL is invalid GraphQL. This is most likely a bug in JS schema generator, can you please create an issue with your data model? 🙏 I will take a look at it today!
You can bypass the JS schema generator by typing
prisma generate --endpoint
Make sure your GraphQL endpoint is live to get this to work
k
Is this also a bug?
or my editor doesn't support these comments properly?
d
Interesting, is there an associated error message? When you hover or in output part?
Looks like some extension messing around
What is the extension of this file? Please share a full screen image!
k
This one is the generated prisma.graphql file
It's generated with this
Copy code
- generator: graphql-schema
    output: ./prisma-schema/
d
Let me try and get back. Do send your datamodel for an expedited fix on the above issue!
j
@divyendu Any news of why this error happens?
I'm having the same result
k
@divyendu I cannot deploy ...
d
@kitze: Because of the stuff discussed in above discussion or is this a new error?
k
Actually the deployment went fine, the error is thrown from the generate hook
So now I have to run
prisma deploy && prisma generate --endpoint
which is ok until this is fixed
d
Yes, it is on my list 👍
I created this issue to track this: https://github.com/prisma/prisma/issues/3352
@kitze: the other issue, regarding lint errors in generated graphql looks like your editor, I am unable to reproduce it.. and I would need your help to sort that one out 👍