kentcdodds / jest-cypress-react-babel-webpack

Configure Jest for Testing JavaScript Applications and Install, Configure, and Script Cypress for JavaScript Web Applications on TestingJavaScript.com

Home Page:https://testingjavascript.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

tmerlet opened this issue · comments

I tried to run this project as a fresh install from master and I was getting the following error:

When running npm run dev, I'm getting
Error: Cannot find module 'webpack-cli/bin/config-yargs'

as explained here: webpack/webpack-dev-server#2759

I had to update the package.json from:

"dev:client": "webpack-dev-server --mode=development",

to

"dev:client": "webpack serve --mode=development",

Hope this helps someone