webpack-cli updated to the lattest version is causing issues to laravel-mix (propably)
See original GitHub issue- Laravel Mix Version: 6.0.27
- Node Version: 15.8.0
- NPM Version: 7.19.0
- OS: Linux (Ubuntu 20.04.2 LTS)
Description:
After upgrading this morning the node modules, laravel mix stopped working. This probably has to do with the update of webpack-cli that happened yesterday from version 4.7.2 to 4.8.0.
Steps To Reproduce:
Create a new project with Laravel, install Jetstream (just because it is already configured with inertia) and install the packages (I used yarn, but it’s the same with npm).
And run
#yarn
yarn hot
#npm
npm run hot
and get the following error:
➜ yarn hot
yarn run v1.22.4
$ mix watch --hot
● Mix █████████████████████████ (0%)
[webpack-cli] Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
- configuration has an unknown property 'webpackbar'. These properties are valid:
object { bonjour?, client?, compress?, devMiddleware?, firewall?, headers?, historyApiFallback?, host?, hot?, http2?, https?, liveReload?, onAfterSetupMiddleware?, onBeforeSetupMiddleware?, onListening?, open?, port?, proxy?, public?, setupExitSignals?, static?, transportMode?, watchFiles? }
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:15
- Comments:14 (1 by maintainers)
Top Results From Across the Web
Laravel 8 - Mix 6.0.10 - [webpack-cli] TypeError: The ... - GitHub
[webpack-cli] TypeError: The 'compilation' argument must be an instance of Compilation at Function.
Read more >Laravel Mix suddenly started to give errors - Laracasts
Hi, I have been running Laravel Mix before without any problems. ... 23 error Make sure you have the latest version of node.js...
Read more >Laravel 8 Installation - npm run dev Error - Stack Overflow
To fix this issue you need to replace this code. mix.react('resources/js/app.js', 'public/js') .sass('resources/sass/app.scss', 'public/css');.
Read more >Troubleshooting | Laravel Mix Documentation
I'm having trouble updating/installing Mix. Unfortunately, there are countless reasons why your dependencies may not be installing properly.
Read more >Need help using Laravel Mix 6 - Reddit
Hey there, I have a Laravel + Vue.js single page application. I want to enable vendor extraction to minify my bundle size, but...
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
Faced the same problem. How difficult is it without hot ((
This has been fixed but a release has not yet been tagged (h/t to @guihigashi). I’ll make a note once a release has been tagged.