Cannot read property 'call' of undefined
rebz opened this issue · 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.
Could you create a reproduction repo for me?
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 laravel-mix/laravel-mix#1908
If you have any thoughts on this I would love to hear them. Otherwise we can close this issue.