DEV Community

Discussion on: Setup a React app with Webpack and Babel

Collapse
 
greaperdev profile image
Ioannis Kotsonis

Hello,
When i run "npm run webpack", the webpack script was missing. I did all the steps but for a strange reason, i had to add the scripts manually to make it work.
By the way, it's not a problem at all.
Very nice topic, you helped me A LOT!

Collapse
 
venkatramy profile image
Venkatramy

Same thing happened to me, which step i had to replace to come out of this error. Please suggest. TIA

Collapse
 
deadwing7x profile image
Anubhav Sarkar

So, you need to add these two scripts in the package.json file.

You can find the link to the file in this link below:

github.com/deadwing7x/react-with-w...

Collapse
 
deadwing7x profile image
Anubhav Sarkar

Hey, thank you for your feedback! 😃 I missed adding a line to add webpack in the script! I just attached the image after adding it! That might have caused the confusion! Anyways thank you! 😁