-
Notifications
You must be signed in to change notification settings - Fork 256
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
ERROR: Cannot find module 'graphql/validation/rules/KnownArgumentNamesRule' #904
Comments
This is purely at the module node: v14.17.3 Reverting back to v0.25.2 or even v0.26.0 eliminates the issue. |
This appears to also have been resolved by upgrading from |
It looks like this internal "export" from graphql-js was renamed in graphql@15: graphql/graphql-js#2448 That means that the packages in this repo claim to support (via peer deps) graphql@14 and graphql@15 but now only support graphql@15. Apollo Server 3 only supports graphql@15, so doing that upgrade had the side effect of fixing it for you. federation and gateway are still pre-1.0 and it would probably be reasonable to change their peer dependencies to require graphql@15, but that should certainly be a documented explicit choice rather than unintentional like in this case. |
My initial reaction was to fix this in a backwards compatible way via some |
My only issue there is that this no longer feels like a minor point release. |
You're not wrong about this being a breaking change, however semver pre-1.0 doesn't follow this convention.
We do tend to stick to not breaking anything in patch releases, but we do not consider this to be 1.0 yet and as such, the minor captures both breaking changes as well as new behavior. I apologize for any inconvenience this causes. |
Okay, fair enough. |
It's worth mentioning that npm respects this pre-1.0 convention as well and treats minors as majors. For example, the constraint |
Receiving the following error when upgrading to v0.27.0:
The text was updated successfully, but these errors were encountered: