next-apollo-ssr icon indicating copy to clipboard operation
next-apollo-ssr copied to clipboard

Make this work with Next.js 12.1.x

Open tomitrescak opened this issue 2 years ago • 1 comments

With 12.1.x you receive a following error otherwise:

Invariant Violation: Could not find "client" in the context or passed in as an option. Wrap the root component in an <ApolloProvider>, or pass an ApolloClient instance in via options.

Seems like _app is NOT processed during the server render for some reason when _document is present.

tomitrescak avatar Apr 28 '22 09:04 tomitrescak