apollo-server-express: peer dependency warnings on install
See original GitHub issueInstalling 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:
- Created 3 years ago
- Reactions:26
- Comments:14 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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?)
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