-
Notifications
You must be signed in to change notification settings - Fork 191
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
Apollo client not found #599
Labels
Comments
@cory-mosey could you upgrade to the current latest version ( |
I am using async fetch() {
try {
const res = await this.$apollo.defaultClient.query({
query: getEventsQuery,
variables: {
skip: this.skip,
take: this.take
}
});
if (res) {
this.isLoading = false;
const { results } = res.data.events;
this.events = results;
}
} catch (err) {
console.error(err);
this.isLoading = false;
this.events = [];
}
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Darwin
v18.19.0
3.9.3
[email protected]
ssr
,devtools
,modules
,runtimeConfig
,apollo
@nuxtjs/[email protected]
,@nuxtjs/[email protected]
Describe the bug
Just upgraded to Nuxt 3.10 (Downgraded again due to this error hence the bug report above), but all my apollo queries, etc are now returning this:
Error: Apollo client with id default not found.
My config is set up as follows:
Any reason as to why this is happening? Has Nuxt Apollo not been updated to Nuxt 3.10 yet?
Expected behaviour
Expected: Nuxt Apollo to find default client based on config as working in Nuxt 3.9.
Reproduction
No response
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: