Skip to content
This repository has been archived by the owner on Apr 1, 2022. It is now read-only.

Cannot read property 'call' of undefined #167

Open
rebz opened this issue Jan 6, 2019 · 2 comments
Open

Cannot read property 'call' of undefined #167

rebz opened this issue Jan 6, 2019 · 2 comments

Comments

@rebz
Copy link

rebz commented Jan 6, 2019

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

@kenberkeley
Copy link
Collaborator

Could you create a reproduction repo for me?

@rebz
Copy link
Author

rebz commented Jan 7, 2019

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants