Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React scripts fails while i run concurrently with nodemon

Tags:

reactjs

Error

When i run npm start the above error occurs.

my script in package.json:

"start": "concurrently \"nodemon server\" \"react-scripts start\"",

Any help will be great !

like image 356
shankar Avatar asked Oct 25 '25 23:10

shankar


1 Answers

One of the ways you can do is (You can amend it accordingly) :

"server": "nodemon index.js",

"react": "react-scripts start"

"dev": "concurrently \"npm run server \" \"npm run react\" "

And then do npm run dev

You can read more about concurrently here

like image 121
Aaqib Avatar answered Oct 27 '25 15:10

Aaqib



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!