Closed Powell-v2 closed 5 years ago
You have multiple graphql
versions you need to specify what to use. Playground is still using graphql 13. So inside package.json
:
"resolutions": {
"**/graphql": "0.13.0",
"**/**/graphql": "0.13.0"
}
etc
The thing is Iām not using yarn
in the project ... Any advice on how to solve it with npm
?
I don't know for npm
, but another solution is to play with rest packages and see get them to one graphql version, but that is really bad idea.
Thanks!
This issue pertains to the following package(s):
What OS and OS version are you experiencing the issue(s) on?
macOS Mojave v10.14.1
What version of graphql-playground(-electron/-middleware) are you experiencing the issue(s) on?
graphql-playground-react
v1.7.9What is the expected behavior?
There shouldn't be a clash of versions? I'm not really sure, maybe the problem is on my side.
What is the actual behavior?
I'm extending provided React component. Once I start typing a query, the following error appears in the console:
What steps may we take to reproduce the behavior?
Please provide a gif or image of the issue for a quicker response/fix. Here is my dependency graph (generated by
npm ls graphql
), hopefully it helps: