[Vuejs]-Cannot access Vue directive with npm link

0👍

import my_module from 'some_module'
Vue.use(my_module)

instead of

const my_module = require('some_module')
Vue.use(my_module)

did the trick.

Leave a comment