Gatsby: Please update [email protected] and [email protected] [email protected] warns about peer dependency graphql

Created on 2 Feb 2019  路  16Comments  路  Source: gatsbyjs/gatsby

If I'm npm i my app with [email protected] I have this dependency issues with gatsby sub-dependencies:

npm WARN [email protected] requires a peer of graphql@^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requiresa peer of graphql@^14.1.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^14.1.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^14.1.0 but none is installed. You must install peer dependencies yourself.

if I'm npm i my app with [email protected] I have next sub-dependency issues

npm WARN [email protected] requires a peer of graphql@^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^0.13.0 but none is installed. You must install peer dependencies yourself.

current versions of this dependencies:
[email protected] - safe to update
[email protected] - safe to update
[email protected] - need to be tested

stale? maintenance

Most helpful comment

We all see the same warnings, no need to keep repeating here, thanks.

All 16 comments

Thank you for reporting this, @JustFly1984

cc @freiksenet

I am having similar issues

npm install --save gatsby-plugin-typography
npm WARN [email protected] requires a peer of graphql@^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of @emotion/core@^10.0.5 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^0.13.0 but none is installed. You must install peer dependencies yourself.

I'm chiming in too...

npm WARN [email protected] requires a peer of graphql@^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^0.13.0 but none is installed. You must install peer dependencies yourself.

Similar problem :

npm WARN deprecated [email protected]: CircularJSON is in maintenance only, flatted is its successor.
npm WARN [email protected] requires a peer of graphql@^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^0.13.0 but none is installed. You must install peer dependencies yourself.

Similar problem

npm install --save node-sass gatsby-plugin-sass
npm WARN [email protected] requires a peer of graphql@^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^0.13.0 but none is installed. You must install peer dependencies yourself.

We all see the same warnings, no need to keep repeating here, thanks.

Any solution found? I keep running into these issues when trying to create a gatsby project

Progressing in (either) #11512 and #11568

Any progress on this issue? babel-plugin-remove-graphql-queries not working properly breaks both my project's Jest tests and Storybook stories :(

@thomasryu could you explain how this breaks functionality? This is a warning--it shouldn't impact underlying functionality.

@DSchau sorry for the delay. I've recently updated Gatsby in order to use useStaticQuery.

Before the update, I was already using the standard StaticQuery to load images into my components, and my jest tests (simple render tests) and Storybook stories were working fine.

After the update, it seems Gatsby is unable to remove GraphQL queries inside components after the update, the complain received is the following:

It appears like Gatsby is misconfigured. Gatsby related `graphql` calls are supposed to only be
evaluated at compile time, and then compiled away,. Unfortunately, something went wrong and the
query was left in the compiled code.

I am assuming this is a problem with babel-plugin-remove-graphql-queries.

Hiya!

This issue has gone quiet. Spooky quiet. 馃懟

We get a lot of issues, so we currently close issues after 30 days of inactivity. It鈥檚 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. You can also add the label "not stale" to keep this issue open!

Thanks for being a part of the Gatsby community! 馃挭馃挏

@JustFly1984 @Timothy-Guyon @pxlla, I'm on [email protected], [email protected] and still facing issues. Linked issue above by @millette; does not seem to solve my problems. Thank you guys for your hard work on this awesome project.

Here are the steps I followed -
gatsby new hello-world
npm install
npm i gatsby-source-pg
added config for gatsby-source-pg in gatsby-config.js
gatsby develop

when I try to execute graphql query in playgroud (http://localhost:8000/___graphql), I get following errors -

"message": "Cannot use GraphQLSchema "[object GraphQLSchema]" from another module or realm.

Ensure that there is only one instance of "graphql" in the node_modules directory. If different versions of "graphql" are the dependencies of other relied on modules, use "resolutions" to ensure only one version is installed.

https://yarnpkg.com/en/docs/selective-version-resolutions

Duplicate "graphql" modules cannot be used at the same time since different versions may have different capabilities and behavior. The data from one version used in the function from another could produce confusing and spurious results.",

But then in warning it also says - I dont have dupliacate graphql -

npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] requires a peer of graphql@^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of prop-types@^15.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^0.11.3 || ^0.12.3 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

Hey again!

It鈥檚 been 30 days since anything happened on this issue, so our friendly neighborhood robot (that鈥檚 me!) is going to close it.

Please keep in mind that I鈥檓 only a robot, so if I鈥檝e closed this issue in error, I鈥檓 HUMAN_EMOTION_SORRY. Please feel free to reopen this issue or create a new one if you need anything else.

Thanks again for being part of the Gatsby community!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

magicly picture magicly  路  3Comments

benstr picture benstr  路  3Comments

brandonmp picture brandonmp  路  3Comments

dustinhorton picture dustinhorton  路  3Comments

KyleAMathews picture KyleAMathews  路  3Comments