Cannot start web server: error message: import app from "./instance.mjs" #135
-
Good day,
/root/.npm/_logs/2021-01-17T00_07_36_560Z-debug.log
|
Beta Was this translation helpful? Give feedback.
Answered by
lowlighter
Jan 17, 2021
Replies: 3 comments
-
Hello ! Seems your NodeJS version is a bit outdated (v10) and probably does not support ES modules syntax. A lot of new JS features are used in metrics (like Hope it helped 🙂 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lowlighter
-
Thank you. I have now installed a newer version of NodeJS and it works. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello !
Seems your NodeJS version is a bit outdated (v10) and probably does not support ES modules syntax.
A lot of new JS features are used in metrics (like
import/export
syntax,?.
and??
operators, etc.) so you should either upgrade your NodeJS or else use a transpiler like BabelJS to make it run on an older version.Hope it helped 🙂