Try running just like the docs: https://laravel.com/docs/7.x/mix#running-mix
And remember, there are videos on mix and assets.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
This just started happening ...
~/STGdev/lvvn $ npm run watch
> @ watch /home/gymdo/STGdev/lvvn
> npm run development -- --watch
> @ development /home/gymdo/STGdev/lvvn
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js "--watch"
10% building 1/1 modules 0 active
webpack is watching the files…
98% after emitting SizeLimitsPlugin
ERROR Failed to compile with 1 errors 10:22:54 PM
error in ./resources/sass/app.scss
Module build failed (from ./node_modules/css-loader/dist/cjs.js):
TypeError: text.forEach is not a function
at /home/gymdo/STGdev/lvvn/node_modules/extract-text-webpack-plugin/dist/loader.js:145:16
I've spent 10 hours trying to fix it ... searching and trying things .... This error happens when my webpack.mix.js is the original installation.
Looks the same as this ... https://www.bountysource.com/issues/92161278-unexpectedly-fails-with-css-loader-v4-0-0
Please or to participate in this conversation.