Skip to content
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

Getting error when upgrading @apollo/client package #295

Closed
elrumordelaluz opened this issue May 8, 2024 · 4 comments
Closed

Getting error when upgrading @apollo/client package #295

elrumordelaluz opened this issue May 8, 2024 · 4 comments

Comments

@elrumordelaluz
Copy link

Everything was working ok following the README docs until upgraded @apollo/client from v3.9.11 into the last minor releases, like v3.10.x, getting this error:

Internal error: Error: When using ApolloClient in streaming SSR, you must use the NextSSRApolloClient export provided by "@apollo/experimental-nextjs-app-support/ssr"

Seems that this packages is using the previous minor releases of @apollo/client as devDependency and peerDependency.

For now I am fixing the @apollo/client version into v3.9.x but just wondering if is it planned to support new versions (in case this is the problem and not something I am missing).

@elrumordelaluz elrumordelaluz changed the title Getting error when updating @apollo/client package Getting error when upgrading @apollo/client package May 8, 2024
@phryneas
Copy link
Member

phryneas commented May 8, 2024

The lastest version of Apollo Client is definitely supported - ^3.9.6 includes 3.10.*.

Can you please how your setup for this package, including all the import statements?

@elrumordelaluz
Copy link
Author

Thank you @phryneas. I must apologize for opening the issue regarding package versions without first doing this test:

rm -rf node_modules pnpm-lock.yaml

which makes everything working again. Seems there was an issue related on pnpm cache/store which was solved as described. Thank you again!

Copy link

github-actions bot commented May 8, 2024

Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Client usage and allow us to serve you better.

@phryneas
Copy link
Member

phryneas commented May 8, 2024

Great to hear it worked out! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants