how can fix this error on nodemon server, im just started learning MERN
2
Just remove the first line it the cause of the error
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.
Click here to cancel reply.
2
Answers
Just remove the first line it the cause of the error
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.