vue2-datatable icon indicating copy to clipboard operation
vue2-datatable copied to clipboard

Cannot read property 'call' of undefined

Open rebz opened this issue 7 years ago • 2 comments

I am receiving the following error when doing something as simple as...

import Vue from "vue";
import Datatable from 'vue2-datatable-component'
Vue.use(Datatable)
const app = new Vue().$mount('#app')

What's odd is that there is one section of my site doing this and it works perfectly fine. But anytime I try to implement it beyond that it fails.

image

rebz avatar Jan 06 '19 21:01 rebz

Could you create a reproduction repo for me?

kenberkeley avatar Jan 07 '19 00:01 kenberkeley

Unable to reproduce in a fresh project. After further testing I've begun to narrow down the issue to what appears to be related to laravel-mix@^4.0.0 using .extract(['vue']). When I do not extract Vue to a vendor file it works fine. There might be an issue with npm package versions not clearing properly, a bug in Laravel Mix, or something related to Webpack. Whatever it is, it's most likely something not related to this package at the time. I'll need to dig deeper at a later point.

I think there might be some relation to https://github.com/JeffreyWay/laravel-mix/issues/1908

If you have any thoughts on this I would love to hear them. Otherwise we can close this issue.

rebz avatar Jan 07 '19 13:01 rebz