Skip to content
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

graphql dependency is mismatched with graphql-compose #35212

Closed
2 tasks done
adambaratz opened this issue Mar 23, 2022 · 11 comments · Fixed by #36813
Closed
2 tasks done

graphql dependency is mismatched with graphql-compose #35212

adambaratz opened this issue Mar 23, 2022 · 11 comments · Fixed by #36813
Labels
help wanted Issue with a clear description that the community can help with. status: confirmed Issue with steps to reproduce the bug that’s been verified by at least one reviewer. topic: GraphQL Related to Gatsby's GraphQL layer type: bug An issue or pull request relating to a bug in Gatsby
Milestone

Comments

@adambaratz
Copy link

Preliminary Checks

Description

There is a known issue with graphql-compose where it technically depends on graphql v16, but isn't explicit about it. Gatsby, after #34787, depends on this package but depends on an earlier version of graphql. As a result, the TypeScript compiler fails unless you enable the skipLibCheck option.

Reproduction Link

N/A

Steps to Reproduce

...

Expected Result

No errors with tsc.

Actual Result

$ tsc
node_modules/graphql-compose/lib/type/buffer.d.ts:3:25 - error TS2315: Type 'GraphQLScalarType' is not generic.

3 declare const _default: GraphQLScalarType<Buffer, string>;
                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/graphql-compose/lib/type/date.d.ts:2:25 - error TS2315: Type 'GraphQLScalarType' is not generic.

2 declare const _default: GraphQLScalarType<Date, string>;
                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Found 2 errors.

Environment

.

Config Flags

No response

@adambaratz adambaratz added the type: bug An issue or pull request relating to a bug in Gatsby label Mar 23, 2022
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Mar 23, 2022
@adambaratz
Copy link
Author

Apologies if I short-circuited the template in an unhelpful way, but I think the fix is as simple as updating the graphql dependency (assuming that doesn't break anything). If it would be helpful to create a very simple project to be able to reproduce, I can do that.

@pieh pieh added topic: GraphQL Related to Gatsby's GraphQL layer and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Mar 24, 2022
screendriver added a commit to screendriver/echooff.dev that referenced this issue Mar 26, 2022
screendriver added a commit to screendriver/echooff.dev that referenced this issue Mar 26, 2022
@github-actions
Copy link

Hiya!

This issue has gone quiet. Spooky quiet. 👻

We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here.
If we missed this issue or if you want to keep it open, please reply here.
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!

Thanks for being a part of the Gatsby community! 💪💜

@github-actions github-actions bot added the stale? Issue that may be closed soon due to the original author not responding any more. label Apr 14, 2022
@github-actions
Copy link

Hey again!

It’s been 60 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it.
Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m HUMAN_EMOTION_SORRY. Please feel free to comment on this issue or create a new one if you need anything else.
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!

Thanks again for being part of the Gatsby community! 💪💜

@chris48s
Copy link

Commenting because this issue has not been fixed

@ctmm
Copy link

ctmm commented May 27, 2022

Also experiencing issues with this topic

@LekoArts LekoArts removed the stale? Issue that may be closed soon due to the original author not responding any more. label May 30, 2022
@LekoArts LekoArts reopened this May 30, 2022
@LekoArts
Copy link
Contributor

While on paper it's "just" updating graphql the breaking changes list is quite long:

https://github.com/graphql/graphql-js/releases/tag/v16.0.0

We'd appreciate any help with putting up a PR updating it and assessing which breaking changes affect us and if this would also mean a breaking change for Gatsby users.

@LekoArts LekoArts added this to the Gatsby 5 milestone May 31, 2022
@ctmm
Copy link

ctmm commented May 31, 2022

In the meantime, we've downgraded our version of graphql-composer – the package triggering the conflict – as a fix.
On package.json:

  "overrides": {
    "gatsby": {
      "graphql-compose": "9.0.4"
    },
    "gatsby-plugin-manifest": {
      "graphql-compose": "9.0.4"
    },
    "gatsby-plugin-utils": {
      "graphql-compose": "9.0.4"
    }
  },

At the same time, I'm unsure if the issue will be fixed by upgrading Gatsby's graphql version.
graphql-compose/graphql-compose#383
graphql-compose/graphql-compose#374

Should we fix it by downgrading Gatsby's desired version of graphql-compose?

julrich added a commit to kickstartDS/gatsby-theme-kickstartDS that referenced this issue Jun 3, 2022
... not yet compatible with graphql 16
gatsbyjs/gatsby#35212
@github-actions
Copy link

Hiya!

This issue has gone quiet. Spooky quiet. 👻

We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here.
If we missed this issue or if you want to keep it open, please reply here.
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!

Thanks for being a part of the Gatsby community! 💪💜

@github-actions github-actions bot added the stale? Issue that may be closed soon due to the original author not responding any more. label Jun 20, 2022
@adambaratz
Copy link
Author

Still an issue.

@github-actions github-actions bot removed the stale? Issue that may be closed soon due to the original author not responding any more. label Jun 27, 2022
@LekoArts LekoArts added the help wanted Issue with a clear description that the community can help with. label Jun 27, 2022
@github-actions
Copy link

Hiya!

This issue has gone quiet. Spooky quiet. 👻

We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here.
If we missed this issue or if you want to keep it open, please reply here.
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!

Thanks for being a part of the Gatsby community! 💪💜

@github-actions github-actions bot added the stale? Issue that may be closed soon due to the original author not responding any more. label Jul 17, 2022
@LekoArts LekoArts added status: confirmed Issue with steps to reproduce the bug that’s been verified by at least one reviewer. and removed stale? Issue that may be closed soon due to the original author not responding any more. labels Jul 18, 2022
@LekoArts
Copy link
Contributor

Downgrading graphql-compose is not an option by the way.

jgosmann added a commit to jgosmann/adventures that referenced this issue Aug 28, 2022
* Fix graphql-compose to version 9.0.4 due to [1]
* Some new settings are required for newer TypeScript version
* TypeScript 4.8 is incompatible with currently used msw version

[1]: gatsbyjs/gatsby#35212
ajmalmsali added a commit to infohe/graphql-compose-elasticsearch that referenced this issue Jun 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Issue with a clear description that the community can help with. status: confirmed Issue with steps to reproduce the bug that’s been verified by at least one reviewer. topic: GraphQL Related to Gatsby's GraphQL layer type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants