-1

Full image of error

I'm new in learning React, today, I have trouble as below and I can't fix it, please help me. Below is the error

Mukyuu
  • 6,436
  • 8
  • 40
  • 59
shyoski
  • 1
  • 1

1 Answers1

-1

Package.json

"dev": "nodemon --watch *.js --exec 'node --harmony api.js'",
 change to:
"dev": "nodemon --watch *.js -x npm run start",

and then ‘npm run dev’ start a dev serve normally.

  • `"dev": "nodemon server.js -w server.js -w routes.js -w config/router.config.js -w next.config.js -w .env "` This is my "dev" line, how can i edit it – shyoski Nov 13 '19 at 09:20
  • It depends on which file needs to be run . In above only reactjs server and express server needs to be started. – Zaid Mansuri Nov 13 '19 at 11:54