soprasteria / sonar-report

Generates an html report from SonarQube
GNU General Public License v3.0
87 stars 43 forks source link

SyntaxError: Unexpected token '.' on node v12.22.12 #223

Closed almas closed 1 year ago

almas commented 1 year ago

SonarQube Local Community version 9.9

"http://localhost:9000/"

lbugs --sonartoken squ_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
file:///usr/local/lib/node_modules/sonar-report/index.js:287
    data.coverage = json.component.measures[0]?.value || 0;
                                               ^

SyntaxError: Unexpected token '.'
    at Loader.moduleStrategy (internal/modules/esm/translators.js:140:18)
$ node -v
v12.22.12
thecampagnards commented 1 year ago

Hello, yes you need as minimal the node v14, I will release a new version so you will get a warn when install