Sonar-scanner fails on typescript 4.4 with new tsconfig 'useUnknownInCatchVariables'

versions used (SonarQube, Scanner, Plugin, and any relevant extension)

Using SonarQube community 8.9 version for testing with sonar scanner cli docker container: Docker Hub

error observed (wrap logs/code around triple quote ``` for proper formatting)

ERROR: Unknown compiler option 'useUnknownInCatchVariables'.

This compiler option exist in our tsconfig.json after upgrading to 4.4. See for more info.

steps to reproduce

  1. Have a typescript project with a tsconfig.json with useUnknownInCatchVariables: false
  2. Run sonar-scanner(Docker Hub) with sonarqube community edition.

Expected: Successfully analyze typescript project.
Actual: fails with useUnknownInCatchVariables: false


please have a look here TypeScript: useUnknownInCatchVariables compiler option causes main branch to show up empty - #2 by Jake_Morrison