You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get this error when I include "Vue.use(VueApollo)" in my main.js
my apollo.js:
import Vue from "vue"
import VueApollo from "vue-apollo"
import { ApolloClient, createBatchingNetworkInterface } from "apollo-client"
Vue.use(VueApollo);
const apolloClient = new ApolloClient({
networkInterface: createBatchingNetworkInterface({
uri: "http://localhost:1234/graphql"
}),
connectToDevTools: true
});
let apollo = new VueApollo({
defaultClient: apolloClient
});
export default apollo
my main.js:
import Vue from "vue"
import App from "components/app"
import axios from "axios"
import router from "./router"
import apollo from "./apollo"
Vue.prototype.$http = axios;
const app = new Vue({
router,
apollo,
...App
});
export {
app,
apollo,
router
}
What am I doing wrong?
Notes:
I am using the latest version of all packages.
I already tried cleaning npm cache and reinstalling everything.
The text was updated successfully, but these errors were encountered:
I get this error when I include "Vue.use(VueApollo)" in my main.js
my apollo.js:
my main.js:
What am I doing wrong?
Notes:
I am using the latest version of all packages.
I already tried cleaning npm cache and reinstalling everything.
The text was updated successfully, but these errors were encountered: