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

https://github.com/webpack/webpack-dev-server/issues/2759

Can you try webpack serve ?

 

@snitin315 What is the difference between webpack-dev-server and webpack serve? Does it mean I do not need webpack-dev-server when I use webpack v5?

 

Yes webpack-cli v4 comes with out of box support of @webpack-cli/serve which means you can use webpack serve to invoke the webpack-dev-server.

 

Please update webpack-cli to v4 and use webpack serve to run webpack-dev-server

posted on 2020-11-18 12:17  bowen_tong  阅读(57)  评论(0)    收藏  举报