question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 2 years ago
  • Reactions:15
  • Comments:14 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
Velmorencommented, Aug 17, 2021

Faced the same problem. How difficult is it without hot ((

1reaction
thecrypticacecommented, Aug 18, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found