Open zorelias opened 9 months ago
A little update on my investigation: this appears to be a conflict in requiring @vue/apollo-composable
explicitly along with @nuxtjs/apollo
, which includes its own version of the composable library. Interestingly, when only using @nuxtjs/apollo
, useQuery
is reported as undefined and the auto-injected import
fails (while other imports, like useAsyncQuery
, work fine).
Even more interestingly, if I use pnpm
instead of npm
, it works fine without the explicit requirement of @vue/apollo-composable
In my case it wasn't working a mutation gql
.
Downgrading to
@nuxtjs/apollo": "5.0.0-alpha.11
It worked
@zorelias this seems to be an issue with dependency manager's module resolution rather than the library itself.
Describe the bug After upgrading from
4.0.0-beta.12
to4.0.0
, page loads stop working when usinguseQuery
To Reproduce I have a Nuxt
^3.9.3
project using Vue3.4.15
and Apollo Composable4.0.0
. When using the4.0.0-beta.12
branch, my index page loads as expected. When upgraded to4.0.0
, the index page spins forever and never loads anything. I have confirmed that removing the call touseQuery
allows the page to load, and downgrading back to the beta also works.package.json
Snippet of
src/pages/index.vue