[Vuejs]-Vue cli 3 conflicts with apollo

0👍

As indicated in the GitHub link you mentioned, the solution is to configure Webpack via the vue.config.js, which is an optional file in a Vue CLI project. That file is omitted by default, so you would have to create the file if it doesn’t exist.

From the Vue CLI docs:

vue.config.js is an optional config file that will be automatically loaded by @vue/cli-service if it’s present in your project root (next to package.json). You can also use the vue field in package.json, but do note in that case you will be limited to JSON-compatible values only.

👤tony19

0👍

try

new Vue({
  router,
  store,
  apolloProvider,
  render: h => h(App)
}).$mount('#app')

Leave a comment