npm list --depth=0)node -v): 14.15.1npm -v): 6.14.8I get this error upon running the command
mix watch --hot
[webpack-cli] Unknown argument: --inline
[webpack-cli] Unknown argument: --disable-host-check
npm install [email protected] -D
Then npx mix watch --hot
I think I figured out the issue.
Review this merge https://github.com/JeffreyWay/laravel-mix/pull/2632
webpack-dev-server version 4.0.0-alpha removed both --inline and --disable-host-check flag
Please check their change log: https://github.com/webpack/webpack-dev-server/releases/tag/v4.0.0-beta.0
but what's the solution for laravel mix?
a temporary fix is to run: npm install webpack-dev-server, which will install the stable version for now, but as soon as the pull request is merged, you should remove webpack-dev-server from package.json and update to the latest laravel-mix release.
@oluwatosin-me thanks
Most helpful comment
a temporary fix is to run: npm install webpack-dev-server, which will install the stable version for now, but as soon as the pull request is merged, you should remove webpack-dev-server from package.json and update to the latest laravel-mix release.