In my case, I found that I had react-apollo@3.0.1
installed as well as @apollo/react-hooks@3.0.0
. Removing @apollo/react-hooks
and just relying on react-apollo
fixed the invariant issue for me. Make sure that you aren’t using any mismatched versions in your lock file or package.json
This is what someone said in a GitHub issue thread, which, was the case for me too. Make sure you try it!