Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Peer dependency error on new installation of graphql #805

Closed
ThePiyushAggarwal opened this issue May 23, 2022 · 8 comments
Closed

Peer dependency error on new installation of graphql #805

ThePiyushAggarwal opened this issue May 23, 2022 · 8 comments

Comments

@ThePiyushAggarwal
Copy link

I am getting this:

npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: [email protected]
npm WARN Found: [email protected]
npm WARN node_modules/graphql
npm WARN   peer graphql@"^14.7.0 || ^15.3.0" from [email protected] WARN   node_modules/express-graphql
npm WARN     express-graphql@"^0.12.0" from the root project
npm WARN   1 more (the root project)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer graphql@"^14.7.0 || ^15.3.0" from [email protected]  
npm WARN node_modules/express-graphql
npm WARN   express-graphql@"^0.12.0" from the root project
@dk-raw
Copy link

dk-raw commented Jun 5, 2022

There are people having the same issue since 2018! This is unacceptable!

@1catchman
Copy link

1catchman commented Jun 21, 2022

Same issue, I had to install it with --force flag and got a lot of errors during the development.

@adam-nielsen
Copy link

As a temporary workaround you can run npm install with the --legacy-peer-deps option.

Looks like the same issue as #790.

@hamidjavadi
Copy link

Please upgrade GraphQL package to latest version => 16.5.0
Thanks

@BlueSialia
Copy link

For those interested, I forked the project at https://github.com/BlueSialia/express-graphql.

The company I work at uses it for a project, so I will be maintaining it for a long while.

Be aware that I made some changes already to the library, so just replacing express-graphql with @bluesialia/express-graphql may not be enough in some cases.

@newbeb
Copy link

newbeb commented Nov 7, 2022

FYI, Looks like they are deprecating express-graphql in favor of graphql-http: #816.

@amerikan
Copy link

amerikan commented Dec 19, 2022

From the various graphql servers alternatives, in our experience the easiest one to migrate over to, almost a drop in replacement, was GraphQL Yoga with their Express integration.

@saihaj
Copy link
Member

saihaj commented Dec 26, 2022

this project is deprecated and we recommend to moving to alternatives. You can read more here https://github.com/graphql/express-graphql#this-library-is-deprecated

@saihaj saihaj closed this as completed Dec 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants