I got the same error locally. And I seemed to have fixed it!
The only thing I did was deliberately pass InMemoryCache
to the RedwoodProvider
(see the code block below). This is definitely a weird one because it looks like we already do that by default in the RedwoodApolloProvider
^1. So I’ll look into why that’s not working as expected, but as a fix for now you can do this:
import { InMemoryCache } from '@apollo/client'
const cache = new InMemoryCache()
ReactDOM.render(
<FatalErrorBoundary page={FatalErrorPage}>
<AuthProvider client={netlifyIdentity} type="netlify">
<RedwoodProvider graphQLClientConfig={{ cache }}>
<Routes />
</RedwoodProvider>
</AuthProvider>
</FatalErrorBoundary>,
document.getElementById('redwood-app')
)
You’ll also have to end up doing this anyway if you want to configure the typePolicies.