shankar
shankar

Reputation: 43

React scripts fails while i run concurrently with nodemon

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 !

Upvotes: 4

Views: 7279

Answers (1)

Aaqib
Aaqib

Reputation: 10350

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

Upvotes: 6

Related Questions