express-graphql icon indicating copy to clipboard operation
express-graphql copied to clipboard

Peer dependency error on new installation of graphql

Open ThePiyushAggarwal opened this issue 2 years ago • 4 comments

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

ThePiyushAggarwal avatar May 23 '22 16:05 ThePiyushAggarwal

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

dk-raw avatar Jun 05 '22 07:06 dk-raw

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

1catchman avatar Jun 21 '22 06:06 1catchman

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

Looks like the same issue as #790.

adam-nielsen avatar Jul 01 '22 17:07 adam-nielsen

Please upgrade GraphQL package to latest version => 16.5.0 Thanks

hamidjavadi avatar Jul 08 '22 03:07 hamidjavadi

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.

BlueSialia avatar Oct 06 '22 11:10 BlueSialia

FYI, Looks like they are deprecating express-graphql in favor of graphql-http: https://github.com/graphql/express-graphql/pull/816.

newbeb avatar Nov 07 '22 13:11 newbeb

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.

amerikan avatar Dec 19 '22 20:12 amerikan

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 avatar Dec 26 '22 20:12 saihaj