express-graphql
express-graphql copied to clipboard
Peer dependency error on new installation of graphql
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
There are people having the same issue since 2018! This is unacceptable!
Same issue, I had to install it with --force
flag and got a lot of errors during the development.
As a temporary workaround you can run npm install
with the --legacy-peer-deps
option.
Looks like the same issue as #790.
Please upgrade GraphQL package to latest version => 16.5.0 Thanks
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.
FYI, Looks like they are deprecating express-graphql in favor of graphql-http: https://github.com/graphql/express-graphql/pull/816.
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.
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