Skip to content

Undefined Type for Operation #1160

Answered by kitten
Undistraction asked this question in Q&A
Discussion options

You must be logged in to vote

It's possible that this was caused by operation.kind, which is a new addition from @urql/[email protected].

Now, there's a simple fix for this. If you're using urql for instance, bump that, or bump just @urql/core. You'll have to make sure that all your packages are using the same version of @urql/core so if after that yarn list --pattern urql still shows you two of those, then run npx yarn-deduplicate.

Similarly for npm there's the npm dedupe command.

Hope that helps 🙌

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kitten
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants