graphql-for-vscode icon indicating copy to clipboard operation
graphql-for-vscode copied to clipboard

@playlyfe/gql doesn't work with version of "graphql" > "0.11.7"

Open albangiroux opened this issue 6 years ago • 7 comments

If the package.json use the latest version of graphql.js package, you have the following error:

[Info - 10:42:06] NODE_PATH value is: xxxxxx [Error - 10:42:08] Server initialization failed: Request initialize failed with message: Cannot find module 'graphql/validation/rules/ArgumentsOfCorrectType'

Using "graphql": "0.11.7" fix the problem...

albangiroux avatar May 31 '18 08:05 albangiroux

It should work with versions below 0.12. We are working on getting better support for all graphql versions soon.

kumarharsh avatar May 31 '18 11:05 kumarharsh

I've tried @playlyfe/v3 which is supposed to work with [email protected] but unfortunately there is this hard check in the plugin that effectively forbids it.

https://github.com/kumarharsh/graphql-for-vscode/blob/e52efb01732d46f6444bdcc577188e40cb6da5b8/src/server/server.ts#L68

Is there something I can help with on this? It's kinda surprising that with GraphQL being used more and more these super useful tools have lost people interested in maintaining them.

danielkcz avatar Nov 27 '18 21:11 danielkcz

Hi @FredyC, we have a branch for working with @playlyfe/v3 - it's the feat/gql-langauge-server. There is some work remaining in the https://github.com/Mayank1791989/gql-language-server repo related to file watching. It's stalled currently due to other work. Maybe something can be done to get it going, @Mayank1791989?

kumarharsh avatar Nov 28 '18 09:11 kumarharsh

@kumarharsh I would definitely like to help to get this moving. The extension helped me a lot before, but our backend guys decided to use type Query implements Interface1 & Interface2 ... it doesn't work anymore because older graphql module does not understand these.

I guess the first step would be to figure out to use that compatible branch and have it loaded in the VSCode, shouldn't be that hard hopefully.

danielkcz avatar Nov 28 '18 12:11 danielkcz

Ok, guys, I want to thank for all the hard work and the joy this extension has brought in the past 👏 It's time to move on with the awesome Apollo GraphQL that has emerged. It works out of the box without any complicated configuration and extra packages. I really recommend you to try it out.

danielkcz avatar Feb 26 '19 08:02 danielkcz

@FredyC Sadly it doesn't support referencing a local schema consisting out of several files which I really need.

levrik avatar Sep 19 '19 07:09 levrik

@levrik Then file the suggestion. Apollo is surely a more active community and there are good chances for that to happen.

danielkcz avatar Sep 19 '19 12:09 danielkcz