graphql-transform-schema icon indicating copy to clipboard operation
graphql-transform-schema copied to clipboard

"Field type must be output type but got.." Not using peer graphql dependency

Open gage-langdon opened this issue 7 years ago • 2 comments

image

  • This issue is caused by graphql-transform-schema not using the peer dependency, so the version of graphql is misaligned when the peer is using an updated version of graphql. Need to resolve to peer dependency or make it a clear version requirement

gage-langdon avatar Feb 07 '18 18:02 gage-langdon

I'm facing the same issue as @gage-langdon . Have you found some workaround? ---- UPDATE---- I found a quick workaround if you're using yarn as your package manager. In your package.json add "resolutions": { "graphql": "^0.13.0" } This will force every graphql dependency to this version!

maxtechera avatar Mar 14 '18 20:03 maxtechera

@maxtechera Thanks!

gage-langdon avatar Mar 27 '18 19:03 gage-langdon