-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Next.js 13 + Apollo Client 3.7.1 = Error #10310
Comments
Hey @rajat1saxena, I see your query includes a comma after query Cities {
cities {
data {
attributes {
name, # <----
displayname
}
}
}
} Just to rule it out as the issue, could you remove that comma and see if you're still getting that error? |
Had the same issue on mac os with M1 pro CPU. The issue was resolved by customizing fetch on ssr instead of default. const httpLink = createHttpLink({
uri: GRAPHQL_ENDPOINT_URL,
credentials: 'same-origin',
fetch: crossFetch,
}); "@apollo/client": "^3.7.1",
"next": "^12.3.0",
"node": "18.2.0",
"macOS": "13.0"
docs: https://www.apollographql.com/docs/react/api/link/apollo-link-http/#customizing-fetch |
@isolonenko Thanks! That also fixed my issue. My can't resolve error was to bad docker-compose mounting |
I got this as well. What fixed it for me was upgrading from node |
Hi all, just checking in here - do we think this is actionable for the client maintainers or can we close this as resolved? |
Just my 2c but I think it's fine to close. |
Thanks @partounian - in that case I'm going to close this issue out, but feel free to open a new issue as needed. Thanks all! |
Hello i am having the same problem const inter = Inter({ subsets: ['latin'] }) export default function Home({messages}) {
) const client = new ApolloClient ({ }); return { |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Intended outcome:
Apollo client should fetch the data correctly
Actual outcome:
I am getting the following error
How to reproduce the issue:
I created a new Next.js app and installed
@apollo/client
andgraphql
packages. Then I created a fileapollo-client.ts
taken from here.In my
pages/index.tsx
files, I have written the following block and it is throwing the above error.Versions
The text was updated successfully, but these errors were encountered: