nuxt-modules / apollo

Nuxt.js module to use Vue-Apollo. The Apollo integration for GraphQL.
https://apollo.nuxtjs.org
MIT License
955 stars 198 forks source link

Failed to import useQuery #623

Open DrewTJohnson opened 5 months ago

DrewTJohnson commented 5 months ago

Environment

Describe the bug

When trying to use the composable useQuery() I get the following error:

Screenshot 2024-06-06 at 2 52 57 PM

Expected behaviour

Should be able to use the composable and get results back. Instead get the error in the screenshot.

Reproduction

No response

Additional context

No response

Logs

No response

quentinmeliard commented 3 months ago

We had the exact same issue. We found a workaround which is to install @vue/apollo-composable manually.

cesarecluka commented 1 month ago

Exact same issue, but I've had no luck manually installing @vue/apollo-composable, as there are some conflicts. useAsyncQuery works for now but I hope this will get fixed soon