Laravel Mix: Invalid configuration object
[webpack-cli] Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
First, add the following to the package.json file:
Then, run these commands in your terminal:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|$ npm uninstall sass|
|$ npm uninstall sass-loader|
|$ rm -rf node_modules|
|$ rm package-lock.json yarn.lock|
|$ npm cache clear –force|
|$ npm install|
Done! Everything should be working again!