-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invariant Violation: 12 #8515
Comments
@aakashbacancy The instructions at https://github.com/apollographql/invariant-packages only apply to versions of Apollo Client that include #6665 ( However, it's still relatively easy to track down these error codes, once you know the trick(s). In this case, I installed your version of
While there are some false positives here, all the apollo-client/packages/apollo-client/src/core/QueryManager.ts Lines 748 to 753 in 74e1f00
Are you calling |
@benjamn Thanks for a quick reply. I figured it out that when you send Actually, It was a typo issue, and because of that, I imported a query that was never defined. Thanks! |
I'm encountering an
Invariant Violation: Invariant Violation: 12
error and the console is suggesting to check outhttps://github.com/apollographql/invariant-packages
. Didn't help me much.I tried to find out the solution on the above link and on the internet and also ran
grep -r InvariantError node_modules/**/bundle.cjs.js
on my system but I can not find this error.I'm kinda stuck because every new apollo client version has different Invariant violation errors defined with tagging numbers and I'm not sure which error exactly is this? Also, how can I generate
invariantErrorCodes.js
for my version like this? #6665Versions:
"apollo-client": "2.6.10"
Thanks!
The text was updated successfully, but these errors were encountered: