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.
0.13.0 also has a bug on IE11 https://github.com/graphql/graphql-js/issues/1356
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.
Most helpful comment
0.13.0also has a bug on IE11 https://github.com/graphql/graphql-js/issues/1356