[Vue warn]: Injection "$apolloProvider" not found
const httpLink = new HttpLink({ // You should use an absolute URL here uri: '/mis/server/graphql', })
// Create the apollo client const apolloClient = new ApolloClient({ link: httpLink, cache: new InMemoryCache(), connectToDevTools: true, })
Vue.use(VueApollo);
const apolloProvider = new VueApollo({ defaultClient: apolloClient, }) console.log(apolloProvider.provide()) new Vue({ el: '#app', router, provide: apolloProvider.provide(), store, filters, render: h => h(App), });
This is my usage, it looks like the document describes, but it is running with error "Injection "$apolloProvider" not found",is anyone experiencing the same problem?
I am, did you find a fix?
Which version of vue are you guys using? As far as I know, vue 2.4.1 and 2.4.2 won't work.
@LASkuma I'm on 2.5.13
also having this issue, on 2.5.16
I'm not able to reproduce this, so I need a full minimal reproduction.