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.

apollo-server-express: peer dependency warnings on install

See original GitHub issue

Installing the current version of apollo-server-express (2.12.0) with yarn yields the following peer dependency warnings:

warning "apollo-server-express > graphql-subscriptions@1.1.0" has incorrect peer dependency "graphql@^0.10.5 || ^0.11.3 || ^0.12.0 || ^0.13.0 || ^14.0.0".
warning "apollo-server-express > graphql-tools@4.0.7" has incorrect peer dependency "graphql@^0.13.0 || ^14.0.0".
warning "apollo-server-express > subscriptions-transport-ws@0.9.16" has incorrect peer dependency "graphql@^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.1 || ^14.0.2".
warning "apollo-server-express > apollo-server-core > graphql-tag@2.10.3" has incorrect peer dependency "graphql@^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0".
warning "apollo-server-express > apollo-server-core > graphql-upload@8.1.0" has incorrect peer dependency "graphql@0.13.1 - 14".
warning "apollo-server-express > graphql-tools > apollo-utilities@1.3.3" has incorrect peer dependency "graphql@^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0".
warning "apollo-server-express > apollo-server-core > apollo-engine-reporting > apollo-graphql@0.4.1" has incorrect peer dependency "graphql@^14.2.1".

I guess this is due to these dependencies not yet supporting graphql-js@15?

To reproduce:

yarn add graphql apollo-server-express
  • Expected: no peer dependency warnings
  • Actual: peer dependency warnings as shown above

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:26
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mniebercommented, Mar 2, 2021

I also have this problem, and I am on 2.21.0. When I run webpack i get unresolved dependencies for graphql. I tried to install graphql myself, but I think I installed the wrong version (I ran into incompatibility issues later). Can someone tell me which version of graphql I should install?

ps I also wonder why the issue is closed (I understand that the issue is going to be fixed, but in the meantime, isn’t it an open issue?)

1reaction
glassercommented, Feb 11, 2021

Apollo Server v2.21.0 will fix this. I published alpha packages with version v2.21.0-alpha.0. I’d love some folks to try the alpha and let me know if it works for you! Both folks who actually use the upload feature and those who don’t! It’s currently in the release-2.21.0 branch, being tracked at https://github.com/apollographql/apollo-server/pull/4922

Read more comments on GitHub >

github_iconTop Results From Across the Web

apollo-server-express: peer dependency warnings on install
Installing the current version of apollo-server-express (2.12.0) with yarn yields the following peer dependency warnings:
Read more >
Migrating to Apollo Server 4 - Apollo GraphQL Docs
To migrate from Apollo Server 3's apollo-server-express package to using the expressMiddleware function, do the following: Install the @apollo/server , cors , ...
Read more >
GraphQL ERESOLVE unable to resolve dependency tree ...
The problem here is certainly with NPM and the packages you are trying to install rather than anything to do with Docker.
Read more >
apollo-server-fastify | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
GraphQL Back-End in Node.js Made Easy with NestJS
yarn add @nestjs/graphql graphql apollo-server-express@2. ... ts-loader@9.2.5" has unmet peer dependency "webpack@^5.0.0".warning "@nestjs/graphql ...
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