React-apollo: requires a peer of graphql@^0.11.3 || ^0.12.3 but none is installed

Created on 8 Feb 2018  ·  6Comments  ·  Source: apollographql/react-apollo

Intended outcome:
Successful packages installation

Actual outcome:

npm WARN [email protected] requires a peer of graphql@^0.11.3 || ^0.12.3 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 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of [email protected] || ^0.12.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^0.11.0 || ^0.12.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^0.11.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":"linux","arch":"x64"})

+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
added 14 packages in 14.528s

How to reproduce the issue:

I am following the documentation in https://www.apollographql.com/docs/react/basics/setup.html, specifically:

npm install apollo-client-preset react-apollo graphql-tag graphql --save

I also tried
npm install apollo-client apollo-cache-inmemory apollo-link-http react-apollo graphql-tag graphql --save

Version

  • apollo-client@^2.2.2
  • react-apollo@^2.0.4

* Temporary workaround *

change graphql from ^0.13.0 to ^0.11.7

Most helpful comment

Any resolve for this?

All 6 comments

Same here!!

Any resolve for this?

any news?

@bsotodo The warning should be surpressed by installing a "compatible" version (npm install [email protected])

I had to downgrade for that but cool, the warning is gone and everything is working. Thanks @n1ru4l

Closing as out of date, confirmed more lenient peer dependencies:

"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0"

Was this page helpful?
0 / 5 - 0 ratings