Since tuesday we have been experiencing the following issues in builds running SonarCloud code analysis:
##[error]ERROR: d:\a\1\.sonarqube\out\.sonar\mod19\css-bundle\node_modules\micromatch\index.js:44
ERROR: d:\a\1\.sonarqube\out\.sonar\mod19\css-bundle\node_modules\micromatch\index.js:44
##[error]ERROR: let isMatch = picomatch(String(patterns[i]), { ...options, onResult }, true);
ERROR: ^^^
ERROR: SyntaxError: Unexpected token ...
ERROR: at Object.exports.runInThisContext (vm.js:76:16)
ERROR: at Module._compile (module.js:542:28)
ERROR: at Object.Module._extensions..js (module.js:579:10)
ERROR: at Module.load (module.js:487:32)
ERROR: at tryModuleLoad (module.js:446:12)
ERROR: at Function.Module._load (module.js:438:3)
ERROR: at Module.require (module.js:497:17)
ERROR: at require (internal/module.js:20:19)
ERROR: at Object.<anonymous> (d:\a\1\.sonarqube\out\.sonar\mod19\css-bundle\node_modules\stylelint\lib\isPathIgnored.js:4:20)
ERROR: let isMatch = picomatch(String(patterns[i]), { ...options, onResult }, true);
ERROR: ^^^
ERROR: SyntaxError: Unexpected token ...
ERROR: at Object.exports.runInThisContext (vm.js:76:16)
ERROR: at Module._compile (module.js:542:28)
ERROR: at Object.Module._extensions..js (module.js:579:10)
ERROR: at Module.load (module.js:487:32)
ERROR: at tryModuleLoad (module.js:446:12)
ERROR: at Function.Module._load (module.js:438:3)
ERROR: at Module.require (module.js:497:17)
ERROR: at require (internal/module.js:20:19)
ERROR: at Object.<anonymous> (d:\a\1\.sonarqube\out\.sonar\mod19\css-bundle\node_modules\stylelint\lib\isPathIgnored.js:4:20)
##[error]ERROR: at Module._compile (module.js:570:32)
ERROR: at Module._compile (module.js:570:32)
##[error]ERROR: Analysis didn't terminate normally, please verify ERROR and WARN logs above. Exit code 1
I could not figure out the cause, and it seems the analysis is performed correctly otherwise (analysis continues after these errors). It is just that the tast fails (and therefor the build). We use Azure DevOps and therefor the SonarCloud tasks (v1.6.3 to be precise).
Anyone any idea what could be the cause?