I'm upgrading a web app to Laravel 8 and found that Laravel Mix works quite differently. As we may know, now we need to add .vue() in webpack.mix.js like this:
import _ from 'lodash'
import Vue from 'vue/dist/vue'
not sure if this is the correct way as app.js is originally required bootstrap.js, and t seems so many issues like this in stackoverflow but haven't really got a solid answer. Some posts mention it should be able to use window.any = require() while some others tell to use import in every component file. And somehow window.axios = require('axios') still works. JS module is confusing...