question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incorrect peer dependency

See original GitHub issue

[4/5] Linking dependencies… warning “apollo-server > graphql-subscriptions@0.5.8” has incorrect peer dependency “graphql@^0.10.5 || ^0.11.3 || ^0.12.0 || ^0.13.0”. warning “apollo-server > apollo-server-core > @apollographql/apollo-upload-server@5.0.3” has incorrect peer dependency “graphql@^0.13.1”. warning “apollo-server > graphql-tools@3.1.1” has incorrect peer dependency “graphql@^0.13.0”. warning “apollo-server > apollo-server-core > graphql-tag@2.9.2” has incorrect peer dependency “graphql@^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0”. warning “apollo-server > apollo-server-core > subscriptions-transport-ws@0.9.14” has incorrect peer dependency “graphql@^0.10.0 || ^0.11.0 || ^0.12 .0 || ^0.13.1”. warning “apollo-server > graphql-tools > apollo-link@1.2.2” has incorrect peer dependency “graphql@^0.11.3 || ^0.12.3 || ^0.13.0”.

Here is my package.json:

  "dependencies": {
    "apollo-server": "^2.0.7",
    "dotenv": "^6.0.0",
    "esm": "^3.0.82",
    "graphql": "^14.0.2"
  },

In order to get the same result you just have to: yarn add apollo-server graphql

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:7
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
ksmithutcommented, Sep 13, 2018

I think this is because graphql 14 is new and apollo-server hasn’t been updated. If you change your graphql version to be “^0.13.2” it will be fixed until they update their peer dependency. Their docs should be updated to pin graphql to that version until they do, though.

1reaction
sudipta17commented, Oct 1, 2020

Mac OS 10.15.7 tried installing npm install -g apollo in terminal It still gives me the error Screenshot 2020-10-01 at 11 41 29 AM

Read more comments on GitHub >

github_iconTop Results From Across the Web

When installing packages with Yarn, what does "incorrect peer ...
Effectively, peer dependencies are a way for packages to specify, "to use me, you should also have x version of y package installed"....
Read more >
validate-peer-dependencies | Yarn - Package Manager
validate-peer-dependencies. A utility to allow packages to validate that their specified peerDependencies are properly satisified.
Read more >
Incorrect peer dependency "react@16.5.0" #6401 - GitHub
Running yarn install I receive the following warning: warning " > react-native@0.57.0" has incorrect peer dependency "react@16.5.0". If the ...
Read more >
incorrect peer dependency and has unmet peer dependency ...
We are concerned about the incorrect peer dependency and has unmet peer dependency warnings: C:\Users\Foo\source\repos\CompassZero\angular>yarn ...
Read more >
Understanding and managing peer dependencies in your ...
peerDependencies are for dependencies that are exposed to (and expected to be used by) the consuming code, as opposed to "private" dependencies ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found