okay i found the reason i should import the ApolloProvider like this
import { ApolloProvider } from '@apollo/client/react'