skip to Main Content

how can fix this error on nodemon server, im just started learning MERN

2

Answers


  1. Just remove the first line it the cause of the error

    Login or Signup to reply.
  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search