Closed leonceaklin closed 1 year ago
I can install @vue/apollo-composable (only when I'm using --force) manually. But this shouldn't be necessary, or should it?
Also, after installing @vue/apollo-composable manually. I get this error as soon as the mutation gets called in the component: Apollo client with id default not found. Use provideApolloClient() if you are outside of a component setup.
, even though I set it up like this:
apollo: { clients: { default: { httpEndpoint: "/graphql" } }, },
I'm not sure if this error is a result of installing @vue/apollo-composable
manually.
Follow this comment to resolve the missing default client https://github.com/nuxt-modules/apollo/issues/444#issuecomment-1354571194
Thanks! It works for me now.
Environment
Darwin
v18.12.1
3.1.1
2.1.1
npm@8.19.2
vite
runtimeConfig
,components
,modules
,i18n
,apollo
,build
,vite
@nuxtjs/i18n@8.0.0-beta.9
,@nuxtjs/apollo@5.0.0-alpha.5
-
Describe the bug
The @vue/apollo-composable is not found.
Expected behaviour
Nuxt apollo installs @vue/apollo-composable correctly
Reproduction
useMutation
inside a vue component.Additional context
No response
Logs