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 and $apolloHelpers are unknown #588

Closed
ibockowsky opened this issue Jan 3, 2024 · 2 comments · Fixed by #597
Closed

$apollo and $apolloHelpers are unknown #588

ibockowsky opened this issue Jan 3, 2024 · 2 comments · Fixed by #597
Labels

Comments

@ibockowsky
Copy link

Environment


  • Operating System: Darwin
  • Node Version: v20.9.0
  • Nuxt Version: 3.8.2
  • CLI Version: 3.10.0
  • Nitro Version: 2.8.1
  • Package Manager: [email protected]
  • Builder: -
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Describe the bug

image

It should be typed correctly

Expected behaviour

Type should be known

Reproduction

https://github.com/ibockowsky/nuxt3-apollo-undefined-reproduction

Additional context

No response

Logs

No response

@ibockowsky ibockowsky added the bug label Jan 3, 2024
@ehsanonline
Copy link

ehsanonline commented Feb 9, 2024

I'm having the same problem with Bun and Nuxt 3.10, a workaround is:

const apolloc = useApolloClient();
const apollo = useApollo();

@nuraeil
Copy link

nuraeil commented Feb 9, 2024

@ehsanonline @ibockowsky Are you using bundler as resolution in typescript\tsConfig\compilerOptions inside of nuxt.config.ts or as of 3.10 natively via. Nuxt?

If so, it might be related to this one: #593

Try turning off bundler resolution.

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