\'Github\' asked me to update \'webpack-dev-server\' to version 3.1.11 or higher for security reasons.
However, \'npm run dev\' will not run after the update.
<It is because of version of webpack-cli. In some versions, there is no config-yargs.js file. So ^3.3.11
version of webpack-cli worked for me.
Try it:
npm i webpack-cli@^3.3.11
To fix it just do 2 things.
npm i webpack-cli @webpack-cli/init
"scripts": {
"start": "webpack-cli serve --mode development"
},
Done!