Amplify-js: Please update graphql to 14.0.2

Created on 12 Oct 2018  Â·  6Comments  Â·  Source: aws-amplify/amplify-js

I have a project, which renders React app to static files on build withreact-static. It uses webpack 4 and Babel7 to compile source code to static and dynamic pages. Similar to gatsby.js
Currently I have an issue with aws-amplify dependency on [email protected]. I have installed [email protected] as dependency to my project, but then I run npm ls graphql I see this:

$ npm ls graphql
/projects/project
└─┬ [email protected]
  └─┬ @aws-amplify/[email protected]
    └── [email protected]

and I do not see my freshly installed 14.0.2. Then I try to run dev environment, I got errors:

Attempted import error: 'print' is not exported from 'graphql'.

I'm looking at node_modules/graphql/index.js and I see the export of print in index.js file, and the version is 14.0.2 in package.json, but for some reason webpack using aws-amplify's version of graphql.

Please make loose dependency on graphql or make it peer-dependency.

Build GraphQL pending-close-response-required

Most helpful comment

All 6 comments

I also had a problem with gatsby. I ended using "resolutions": { "graphql": "0.13.2" }, in my package.json with yarn

Yes i think, treating graphql as a peer-dependency solves a lot of problems like this ones

Is there any movement on this issue?

Hello, please update graphql dependency - it causes a lot of frustration.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

This issue has been automatically closed because of inactivity. Please open a new issue if are still encountering problems.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

leantide picture leantide  Â·  3Comments

cosmosof picture cosmosof  Â·  3Comments

oste picture oste  Â·  3Comments

romainquellec picture romainquellec  Â·  3Comments

ddemoll picture ddemoll  Â·  3Comments