New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[2.10.0] incompatibility with pre-graphql@14.x #4066
Comments
Maybe you mean "apollo-server-core@2.12.0" instead of "graphql-server-core@2.12.0" |
Yes, sorry I wrote that a bit too fast. Thats fixed :) |
I won't argue that this is (inadvertently!) breaking, but the change that is causing the breakage for you was not introduced in v2.13.0, so the claim that Something has gone awry, but to provide some clarity, I'll copy and paste the error here, since it's only otherwise visible after running the reproduction you provided:
As you can see from the error, this is happening as a result of the Specifically, the commit which introduced this was apollographql/apollo-tooling@3a6b11a which would have been released into That's all to say, this should have surfaced as a breaking change for you a while ago — unless you've just upgraded from an older version recently? (Again, it would have been released on February 6 and you're the first to report it, it would seem.) That's not to say it should have been a breaking change — it was certainly unintended. While I'd love to know what the reason is for being "stuck" on Would you consider PRing a change to the |
@abernix Thanks for the clarification. No, nothing has changed on our side... but our build pipeline started crashing without apparent reason just a few minutes after the release of 2.13.0. I'm pretty sure it was not intended, and my comment was by no mean being a critisism... I'm sorry if it might have been misunderstood as some kind of arrogance. As for why I'm stuck with graphql@0.13.2, that is because we use join-monster, that uses a mechanism to propagate metadatas which is broken after this version of graphql-js (see this issue ) Sure, I will be happy to prepare a PR ! nb: Thanks for the "get that published quickly" part, but there is no hurry - the workaround I mentioned mitigates this issue. |
Good to know! And thanks for considering a PR. I'm still quite perplexed why this wasn't breaking a while ago and that it would have just broken for you on publish like that. I must be missing something in my diagnosis, but I'm glad that I think we can fix it. Having a No worries on the communication — I'm just trying to clarify and debug out-loud. We do try quite hard to not be actively breaking things, so I just want to make sure we are able to defend the releases whenever possible. 😉 Full disclosure, we don't have the matrix of tests of various |
Okay thanks, good to know. Upgrading would be really useful for us once union input types are released (which could be soon, if I remember well), so yes, I am starting to worry about join-monster incompatibility. I'm not sure of what could have caused this, but the thing that I know is that if you take my reproduction repo (which has apollo-server-express@2.12.0 in package.json), and force I submitted apollographql/apollo-tooling#1935 ... is that what you had in mind ? We are extensively using apollo-server, so would be glad to help if I can. Just point me a direction when you think the time is right, I could try to help if I have some time. |
I also encountered the same problem, |
As described in apollographql/apollo-server#4066, older versions of `graphql` do not have this type. Co-authored-by: Jesse Rosenberger <git@jro.cc>
Time has moved on and Apollo Server 4 supports and requires graphql-js v16. |
TLDR Reproduction repo here ... just try to launch main.js, you'll see.
The latest release of apollo-server-core (2.13.0) should have been a major version, I guess.apollo-server-express@2.12.0 depends on apollo-server-core@2.12.0 or higher minor version (i.e.
"apollo-server-core": "^2.12.0"
), which now makes it install 2.13.0.If like me you're stuck with an older graphql version (graphql@0.13.2), the later release breaks everyting:
Cannot find module 'graphql/validation/rules/PossibleTypeExtensions'
Workaround : Force install the older apollo-server-core version (i.e. put
"apollo-server-core": "2.12.0"
in your package.json)Additionally, it should be mentioned that this release no longer supports older graphql versions...
Thanks :)
The text was updated successfully, but these errors were encountered: