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

Apollo client not found #599

Open
cory-mosey opened this issue Mar 10, 2024 · 1 comment
Open

Apollo client not found #599

cory-mosey opened this issue Mar 10, 2024 · 1 comment
Labels

Comments

@cory-mosey
Copy link

cory-mosey commented Mar 10, 2024

Environment

  • Operating System: Darwin
  • Node Version: v18.19.0
  • Nuxt Version: 3.9.3
  • Package Manager: pnpm@8.14.1
  • User Config: ssr, devtools, modules, runtimeConfig, apollo
  • Runtime Modules: @nuxtjs/tailwindcss@6.10.4, @nuxtjs/apollo@5.0.0-alpha.11

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:

apollo: {
    clients: {
	default: {
	    httpEndpoint: process.env.URL,
	    defaultOptions: {},
	}
    },
}

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

@cory-mosey cory-mosey added the bug label Mar 10, 2024
@Diizzayy
Copy link
Collaborator

@cory-mosey could you upgrade to the current latest version (@5.0.0-alpha.13), and try again?

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

No branches or pull requests

2 participants