Skip to content

Cannot start web server: error message: import app from "./instance.mjs" #135

Locked Answered by lowlighter
sb2050 asked this question in Q&A
Discussion options

You must be logged in to vote

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 🙂

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by lowlighter
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #65 on February 18, 2021 11:25.