Describe the bug
What is the current behavior?
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Screenshots
Please paste the results of webpack-cli info here, and mention other relevant information
Additional context
Thank you for creating this issue. However, issues need to follow one of our templates so that we can clearly understand your particular circumstances.
Please help us help you by recreating the issue using one of our templates.
Please use latest webpack-cli
My Project Specification are
"babel-cli": "^6.26.0",
"babel-preset-env": "^1.7.0",
"live-server": "^1.2.1",
"webpack-cli": "^4.6.0"
"@babel/core": "^7.13.16",
"@babel/preset-env": "^7.13.15",
"babel-loader": "^8.2.2",
"webpack": "^5.35.1",
"webpack-dev-server": "^3.11.2"
/************/
ERROR BELOW
/*************/
[email protected] dev-server
webpack-dev-server --mode development
node:internal/modules/cjs/loader:943
throw err;
^
Error: Cannot find module 'webpack-cli/bin/config-yargs'
Require stack:
/***************************/
Here I found some file confliction to access file from CLI
Actually, I compare these changes to previous version
and found
In Latest Version
![Current CLI config-yargs js file -- not exist in CLI fooder]
(https://user-images.githubusercontent.com/44174808/115985839-22737900-a5c7-11eb-8cba-10925d8abd08.png)
In Previous Version

Resolve these file path access to "webpack-cli/bin/config-yargs.js"
Follow https://github.com/webpack/webpack-cli/issues/1948
what command do you use to run dev-server? use webpack serve
Follow #1948
what command do you use to run dev-server? use
webpack serve
I used this command for webpack
dev-server : 'webpack-dev-server'
use webpack serve
As mentioned in docs
But
dev-server : 'webpack serve'
rsolve the broblem thanks
Most helpful comment
But
dev-server : 'webpack serve'
rsolve the broblem thanks