Graphql-js: npm install graphql peer dependency issues

Created on 22 Sep 2018  路  1Comment  路  Source: graphql/graphql-js

Running npm install --save apollo-server graphql gave me the following peer dependency issues:

npm WARN [email protected] requires a peer of graphql@^0.10.5 || ^0.11.3 || ^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN @apollographql/[email protected] requires a peer of graphql@^0.13.1 but none is installed. You must install peer dependencies yourself.

The resolved versions:

+ [email protected]
+ [email protected]

It seems as if the minor version of 14 got moved to a major version on graphql, thus not satisfying peer dependencies of the above packages.

Most helpful comment

It seems as if the minor version of 14 got moved to a major version on graphql, thus not satisfying peer dependencies of the above packages.

@sdgandhi It was intentional, more details here: https://medium.com/@leeb/graphql-js-preparing-for-v14-0-0-839f823c144e

It will take some time for rest of packages (including Apollo) to adapt to the new release and breaking changes in it.
AFAIK Apollo engineers are working on supporting 14.x.x.

>All comments

It seems as if the minor version of 14 got moved to a major version on graphql, thus not satisfying peer dependencies of the above packages.

@sdgandhi It was intentional, more details here: https://medium.com/@leeb/graphql-js-preparing-for-v14-0-0-839f823c144e

It will take some time for rest of packages (including Apollo) to adapt to the new release and breaking changes in it.
AFAIK Apollo engineers are working on supporting 14.x.x.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

davide-ganito picture davide-ganito  路  4Comments

scf4 picture scf4  路  3Comments

ablbol picture ablbol  路  4Comments

sudheerj picture sudheerj  路  3Comments

gjuchault picture gjuchault  路  4Comments