Laravel-mix: webpack-cli Unknown option '--hide-modules'

Created on 4 Jan 2021  路  2Comments  路  Source: JeffreyWay/laravel-mix

Laravel Mix Version: 6.0.0-beta-4
Node Version: v12.14.0
NPM Version: 6.14.10
OS: Ubuntu 10.04

Description:

After running npm run watch produces an error like cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js "--watch" error: unknown option '--hide-modules'

Steps To Reproduce:

npm install laravel-mix --save-dev

then adding the script in package.json

"scripts": { "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", "watch": "npm run development -- --watch", "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" },

and now if I run npm run watch then it produces an error

Most helpful comment

All 2 comments

and how did you resolve it?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hasnatbabur picture hasnatbabur  路  3Comments

rlewkowicz picture rlewkowicz  路  3Comments

jpmurray picture jpmurray  路  3Comments

stefensuhat picture stefensuhat  路  3Comments

sdebacker picture sdebacker  路  3Comments