Tag Archives: Front-end development of basic concepts

Cannot find module ‘webpack cli / bin / config yargs‘

Webpack dev – server issue official link:
https://github.com/webpack/webpack-dev-server/issues/2759

webpack-dev-server update version, the command line changed from
webpack dev serve to webpack serve
, so the package.json needs to be changed to:

"scripts": {
    "dev": "webpack serve --mode development"
  }

See the dead simple Readme:
https://github.com/webpack/webpack-dev-server