Closed pixleight closed 7 months ago
Following the documentation for configuring an Apollo Client in a its own file: https://apollo.nuxtjs.org/getting-started/configuration#clients
Importing defineApolloClient results in an error:
defineApolloClient
Module '"@nuxtjs/apollo"' has no exported member 'defineApolloClient'.
defineApolloClient should be available to import from @nuxtjs/apollo
@nuxtjs/apollo
Minimal reproduction: https://stackblitz.com/edit/github-kyxu1x?file=apollo%2Fclients%2Fdefault.ts
No response
@pixleight this was patched in v5.0.0-alpha.14, the utility can now be exported as follows:
v5.0.0-alpha.14
import { defineApolloClient } from '@nuxtjs/apollo/config'
Environment
Build Modules: -
Describe the bug
Following the documentation for configuring an Apollo Client in a its own file: https://apollo.nuxtjs.org/getting-started/configuration#clients
Importing
defineApolloClient
results in an error:Expected behaviour
defineApolloClient
should be available to import from@nuxtjs/apollo
Reproduction
Minimal reproduction: https://stackblitz.com/edit/github-kyxu1x?file=apollo%2Fclients%2Fdefault.ts
Additional context
No response
Logs
No response