martleby's avatar

Updated to latest Mix - getting an error with FullCalendar

Hi,

I've updated to the latest version of laravel-mix. Everything build ok in development mode, but when I visit my site Vue crashes with a message GloablVue.use is not a function.

I've traced this to FullCalendar. It appears that FullCalendar attempts to get the Vue instance, but can't find it for some reason. I didn't have this problem on my earlier version of mix.

Any ideas?

Thanks, M.

0 likes
1 reply
martleby's avatar

Ok, I've sorted this but I don't understand the solution. In my app.js I had to change:

window.Vue = require('vue')

to:

window.Vue = require('vue').default;

But what does that actually do? Why did it work without in my previous mix version but not in the latest without?

Please or to participate in this conversation.