Error Symbol(__APOLLO_CONTEXT__)

How can i fix this error?
Error: Cannot read properties of undefined (reading ‘Symbol(APOLLO_CONTEXT)’)

I am using Nextjs 13 + Typescript + ApolloClient

Hi @Mahdi_Motallebi :wave: welcome to the community forum! Are you using the pages or app directory with Next.js 13? If it’s app, consider adding 'use client'; in any components that depend on Apollo Client. As I understand it, Next.js 13’s app directory defaults to using React Server Components (RSC). Since Apollo Client’s React API depends on hooks like useContext it’s not compatible with RSC out of the box. I hope that helps!