0π
β
X-Post from VueJS forums where I initially asked this question.
From LinusBorg:
Adding it globally
You canβt use Vue.use inside a component, it has to be added before
you start the main Vue instance (new Vue()β¦)Adding it locally
adding it locally canβt work like you did, because VueTouch is not
just the component, its the plugin containing the component.You can however do this:
import { component as vTouch } from 'vue-touch' ... components: { vTouch }
π€ZeroBased_IX
Source:stackexchange.com