Answers for "internal/modules/cjs/loader.js:968 throw err; ^ Error: Cannot find module 'webpack-cli/bin/config-yargs' Require stack:"

8

Error: Cannot find module 'webpack-cli/bin/config-yargs'

For webpack-cli 3.x:
"scripts": {
  "start:dev": "webpack-dev-server --mode=development"
}

For webpack-cli 4.x:
"scripts": {
  "start:dev": "webpack serve --mode=development"
}
Posted by: Guest on January-23-2021

Code answers related to "internal/modules/cjs/loader.js:968 throw err; ^ Error: Cannot find module 'webpack-cli/bin/config-yargs' Require stack:"

Browse Popular Code Answers by Language