Unexpected token error trying to start server #627

Closed
opened 2026-02-28 01:52:40 -05:00 by deekerman · 1 comment
Owner

Originally created by @amastelek on GitHub (Dec 6, 2021).

/root/uptime-kuma/server/model/monitor.js:172
if (this.getUrl()?.protocol === "https:") {
^

SyntaxError: Unexpected token '.'

Originally created by @amastelek on GitHub (Dec 6, 2021). /root/uptime-kuma/server/model/monitor.js:172 if (this.getUrl()?.protocol === "https:") { ^ SyntaxError: Unexpected token '.'
Author
Owner

@louislam commented on GitHub (Dec 6, 2021):

Nodejs 14. Please search next time, asked several times.

@louislam commented on GitHub (Dec 6, 2021): Nodejs 14. Please search next time, asked several times.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/uptime-kuma#627
No description provided.