Hello, I am trying to use Vue-clip plugin in my Nuxt project. (http://vueclip.adonisjs.com)
This is my nuxt.config.js
configuration file:
...
build: {
vendor: ['axios', 'vue-clip']
},
plugins: [
{ src: '~plugins/vue-clip.js', ssr: false }
],
...
And this is my ~plugins/vue-clip.js
file:
import Vue from 'vue'
import VueClip from 'vue-clip'
Vue.use(VueClip)
This is the error I have on render:
Vue warn: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.
Do you know where it could come from ?
The plugin itself has, in the webpack.config.js
resolve: {
alias: {
vue: 'vue/dist/vue.js'
}
}
Should I use the same alias in the nuxt.config.js
file ?
Thank you very much for your help!
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1004">#c1004</a>)</em></sub></div>