[webpack-cli] TypeError: VueLoaderPlugin is not a constructor
See original GitHub issueDescription:
When I try to run laravel mix (npx mix) I receive the following error:
[webpack-cli] TypeError: VueLoaderPlugin is not a constructor
My webpack file:
let mix = require('laravel-mix');
mix.styles([
'./node_modules/purecss/build/base-min.css',
'./node_modules/purecss/build/grids-min.css',
'./node_modules/purecss/build/grids-responsive-min.css',
'./node_modules/nprogress/nprogress.css',
'./node_modules/loaders.css/loaders.css',
'./node_modules/sweetalert/dist/sweetalert.css',
'./node_modules/card/lib/card.css'
], './public/css/vendor.css')
mix.stylus('./resources/assets/stylus/global.styl', 'public/css')
mix.js('./resources/assets/js/client.js', 'public/js').vue();
I’m using Laravel mix v6.0.25, node v16.4.0 and npm 7.18.1.
Any ideas how to fix the issue ?
Issue Analytics
- State:
- Created 2 years ago
- Comments:7
Top Results From Across the Web
[webpack-cli] TypeError: VueLoaderPlugin is not a constructor
Description: When I try to run laravel mix (npx mix) I receive the following error: [webpack-cli] TypeError: VueLoaderPlugin is not a ...
Read more >vue.js - Compile error [VueLoaderPlugin Error] vue-loader 15 ...
I came across this issue after running npm audit fix --force to get rid of some vulnerability warnings. Whilst this fix means my...
Read more >【已解决】TypeError: VueLoaderPlugin is not a constructor问题
TypeError : VueLoaderPlugin is not a constructor at Object.<anonymous> (D:\12.Code\01.tobacco\tobacco-web\build\webpack.base.conf.js:97:5) at ...
Read more >Laravel-mix error compile webpack.LoaderOptionsPlugin is ...
c:\development\php\laravel\webpack.config.js:252 new webpack.LoaderOptionsPlugin({ ^ TypeError: webpack.LoaderOptionsPlugin is not a constructor at Object.
Read more >typeerror vueloaderplugin is not a constructor - 掘金
问题: VueLoaderPlugin is not a constructor at Object.<anonymous> (D:\12.Code\01.tobacco\tobacco-web\build\webpack.base.conf.js:97:5) at Module.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Vue loader now needs to be imported like this:
Unfortunately I can’t since it’s a private repo. If it helps this is my package.json file: