Home

Issue: 1142

[Vue warn]: You are using the runtime-only build of Vue...

[issue link]

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!

This question is available on Nuxt.js community (#c1004)