how can fix this error on nodemon server, im just started learning MERN
CodePudding user response:
Just remove the first line it the cause of the error
CodePudding user response:
You are using ES6 syntax import, either use require in the first line or add "type":"module" to your package.json file.
"type":"module" enables ES6 import/export functions on a NodeJs project.