My team had added sonar.sources = src folder. So I commented that line as below.
THe thought process was, this folder should be scanned by sonar by default one shouldn’t have to explicitly set these. When I did that the issue dis appeared.
cliProjectVersion: '$(Build.BuildId)'
extraProperties: |
# sonar.sources=src
# sonar.tests=**/src/**/*.test.tsx
sonar.javascript.lcov.reportPaths=coverage/lcov.info
sonar.exclusions=**/node_modules/**,**/coverage/**,**/dist/**,**/src/**/*.test.tsx,**/src/**/*.css
sonar.test.exclusions=**/node_modules/**,**/coverage/**,**/dist/**,**/src/**/*.ts,**/src/**/*.tsx,**/src/**/*.css