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.
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.
-
Thank you. I have now installed a newer version of NodeJS and it works. |
Beta Was this translation helpful? Give feedback.
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 🙂