PacktPublishing / React-Projects

React-Projects, published by Packt
MIT License
169 stars 156 forks source link

Issues with Webpack-cli version 4 and above #22

Open brKCCO opened 3 years ago

brKCCO commented 3 years ago

Webpack-cli functionality for "npm start" seems to be deprecated after the move to version 4. I have found patchwork solutions to serve the assets, but cannot get the Chapter 1 code to run.

FalsePozitive commented 3 years ago

@brKCCO try changing the line for the start script to "start": "webpack serve --mode development --open", in the package.json file. This worked for me.