Closed mcr-ksh closed 1 year ago
I got the same error during install.
SyntaxError: Unexpected token '.' (line:24)
The issue is Optional Chaning Operator support starts at node v14. It is possible to fix that by replacing this.credentials?.username
with this.credentials && this.credentials.username
. But there might be other places that use modern JS features. Is there any reason not to upgrade node to latest LTS version?
ah thank you. that was it. I got it running, however with a different problem I will address in another issue. The reason not to update was that we had legacy code that could not be converted to v14 but with a few hours of work that was migrated.
older node-red (v1.0.2) with nodejs v12.22.6: