-
|
Has anyone successfully managed to use Vue 3 with @vue/apollo-option ^4.0.0-alpha.13 ? I'm struggling to find any working examples of this actually working and I really can't drop Vue down to v2. main.js I get the following error... Any help would be gratefully received. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
@wjcarson look at the sources, it does not export any defaults https://github.com/vuejs/vue-apollo/blob/v4/packages/vue-apollo-option/src/index.js Try to replace import VueApollo from '@vue/apollo-option'with import { createApolloProvider } from '@vue/apollo-option';and replace const apolloProvider = new VueApollo({
defaultClient: apolloClient
})with const apolloProvider = createApolloProvider({
defaultClient: apolloClient
}); |
Beta Was this translation helpful? Give feedback.
-
|
Yup I need to finish updating the docs |
Beta Was this translation helpful? Give feedback.
@wjcarson look at the sources, it does not export any defaults https://github.com/vuejs/vue-apollo/blob/v4/packages/vue-apollo-option/src/index.js
Try to replace
with
and replace
with