I am using webpack within a Laravel Mix project. When my webpack.config.js looks like this, Webpack works without error:
module.exports = {
module: {
How about rewriting the import in your config file to:
const { VueLoaderPlugin } = require("vue-loader");
The Laravel mix setup of yours already loads the VueLoaderPlugin implicitly, so reloading it again causes this error.
From reading their docs, it written that they support .vue file compilation without extra configuration.
If you're still not convinced, check out their internal web pack configuration: https://www.github.com/JeffreyWay/laravel-mix/tree/master/src%2Fcomponents%2FVue.js and notice the use of VueLoaderPlugin.