Issue while using with an existing project with type:"module" ? #733
Unanswered
geminigeek
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
hi,
i am trying to add payload to an existing project built with es6 standards , my package.json have
"type":"module"
currently i have just modified server.js , i changed require to imports as mentioned below, and the app is not starting it giving the below error , can anyone help ?
my server.js
error i am getting
PS: it might be a silly issue , i am very new to Nodejs
thanks
Dee
Beta Was this translation helpful? Give feedback.
All reactions