Graphql-code-generator: Stopped working after upgrade

Created on 13 Sep 2018  Â·  5Comments  Â·  Source: dotansimha/graphql-code-generator

I was using this library for a long time with no problems. I used to call this command

gql-gen --url http://endpoint/graphql/ --template typescript --out ./assets/js/Typings/GraphQL.d.ts

when --url option existed.

Now after upgrade I call similar command but receive unspecified error

$ DEBUG=true gql-gen --schema http://endpoint/graphql/ --template typescript --out ./assets/js/Typings/GraphQL.d.ts
11:03:33.034 - info: [executeWithOptions] using template: typescript
11:03:33.038 - error:
error Command failed with exit code 1.

What might be wrong? Is it because I use graphql 14.0.0?

Most helpful comment

@simPod this issue with the location is because of GraphQL 14, it was fixed and I'll release a version with a fix for it very soon :)

All 5 comments

Hi @simPod

Which version do you use and could you check if it's the same issue as in #573?

@kamilkisiela yes it seems that it's the same, thanks!

Now I'm getting different error, something about Introspection result missing directive locations but I guess I'll solve it when there's a message now :)

Best!

@simPod this issue with the location is because of GraphQL 14, it was fixed and I'll release a version with a fix for it very soon :)

Kk, subscribing for new releases now. Great lib thanks!

On Thu, Sep 13, 2018, 11:26 Dotan Simha notifications@github.com wrote:

@simPod https://github.com/simPod this issue with the location is
because of GraphQL 14, it was fixed and I'll release a version with a fix
for it very soon :)

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dotansimha/graphql-code-generator/issues/595#issuecomment-420943053,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAUAJXMt9qGo5vFKK-4NTvTsrTBBVEiqks5uaiTDgaJpZM4Wm28O
.

@dotansimha Have you ever got to releasing a fix for GraphQL 14? I've just upgraded to latest 0.14.4 and the error @simPod mention is popping up for me as well.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dotansimha picture dotansimha  Â·  3Comments

jackhkmatthews picture jackhkmatthews  Â·  3Comments

quolpr picture quolpr  Â·  3Comments

mdaouas picture mdaouas  Â·  3Comments

iamdanthedev picture iamdanthedev  Â·  3Comments