-
Notifications
You must be signed in to change notification settings - Fork 44
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
Bug: apollo-client
not working with Nextjs
#413
Comments
I could get the build to not fail by using
And initializing the client as follows
But this does not seem ideal |
I see you are importing Mesh's Apollo Link with |
If I change the import to The build is successful. The code compiles with these warnings
|
Hi @yashtotla . Had the same issue. Undesirable dirty logs but it's currently working. See #303 and ardatan/graphql-mesh#2256. |
I tried using
@graphprotocol/client-apollo
with@apollo/client
in the default nextjs app.I modified the default
_app.tsx
file so that it matches with the apolllo client exampleThe build fails with the error https://github.com/yashtotla/nextjs-apollo-graphprotocol-issue/blob/main/build-error.txt
Example repo to reproduce the error: https://github.com/yashtotla/nextjs-apollo-graphprotocol-issue
Repo is set up using create-next-app with typescript. Node version 16. Package manager: yarn
The text was updated successfully, but these errors were encountered: