Warning: Failed context type: Invalid context `client` of type `AWSAppSyncClient` supplied to `Rehydrated`, expected instance of `AWSAppSyncClient`
See original GitHub issuewith new upgrade in packages I get warning
index.js:2178 Warning: Failed context type: Invalid context `client` of type `AWSAppSyncClient` supplied to `Rehydrated`, expected instance of `AWSAppSyncClient`.
in Rehydrated (at App.js:36)
in QueryRecyclerProvider (created by ApolloProvider)
in ApolloProvider (at App.js:35)
in Router (created by BrowserRouter)
in BrowserRouter (at App.js:34)
in WithProvider (created by _class)
in div (created by _class)
in _class (at index.js:7)
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Troubleshooting and Common Mistakes - AWS AppSync
This section discusses some common errors and how to troubleshoot them. Incorrect DynamoDB Key Mapping. If your GraphQL operation returns the following ...
Read more >AWS AppSync Developer Guide - Amazon S3
context to a resolver and the conflict handler to perform additional checks. AWS AppSync Client. The location where GraphQL operations are defined.
Read more >Cannot connect apollo client to aws appsync - Stack Overflow
I have a web app using aws appsync as backend and react + apollo client (v3) as front end.
Read more >API - GraphQL - Realtime and Offline - Swift - AWS Amplify Docs
Now that the client is set up, you can run a GraphQL query. The syntax is appSyncClient?.fetch(query: <NAME>Query() {(result, error)}) where <NAME> comes...
Read more >GraphQL Transform - GitHub Pages
When applied to a type, augments the application with # owner and group-based ... try AWSAppSyncClient(appSyncConfig: appSyncConfig) } catch { print("Error ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
At some point I was getting the warning (everything works, but you get a scary red warning in the console), but then I nuked my node_modules and yarn.lock/package-lock.json, reinstalled dependencies and it went away
Let me know if that works for you to make the warning go away.
Meanwhile, I’ll explore having
aws-appsync
as a peerDependency ofaws-appsync-react
instead of a regular dependencyIf it helps, I’m getting the same error using this repo: https://github.com/dabit3/appsync-graphql-cities which may be easier to test because it is only AppSync.
I was able to get the error to go away by adding:
I found this temporary solution by reading https://github.com/apollographql/react-apollo/issues/604