Test Coverage not shown in UI failing with error message

Sonarqube version: * Community Edition

Sonar scanner version: 4.7.0.2747
project: Typescript code
git repo: GitHub - bansodashish/Typescript-code-Coverage

when I am trying to ran the sonar-scanner -X getting the given error:

Error during parsing of the generic coverage report ‘/Users/bansoash/Desktop/poc-presonnal/ts-jest-sample/coverage/sonar-reports.xml’. Look at SonarQube documentation to know the expected XML format.

I tried to ran the yarn test which generate the sonar-reports.xml file and given output:
PASS tests/base.spec.ts
Simple expression tests
✓ Check literal value (2ms)
✓ Check addition
✓ Check subtraction
✓ Check multiplication
✓ Check division

Test Suites: 1 passed, 1 total
Tests: 5 passed, 5 total
Snapshots: 0 total
Time: 1.247s
Ran all test suites matching /test/i.
---------------|----------|----------|----------|----------|----------------|

File % Stmts % Branch % Funcs % Lines Uncovered Lines
All files 100 75 100 100
src 100 50 100 100
index.ts 100 50 100 100 3
src/core 100 87.5 100 100
functions.ts 100 100 100 100
index.ts 100 50 100 100 3
types.ts 100 100 100 100
src/utils 100 50 100 100
checks.ts 100 100 100 100
index.ts 100 50 100 100 3
--------------- ---------- ---------- ---------- ---------- ----------------
:sparkles: Done in 5.52s.
then when I ran the sonar-scanner -X command getting the above error. Please help me to resolve the issue.

Hi,

Your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

7.2.1 → 7.9.6 → 8.9.9 → 9.6 (last step optional)

You may find the Upgrade Guide and the LTS-to-LTS Upgrade Notes helpful. If you have questions about upgrading, feel free to open a new thread for that here.

If your error persists after upgrade, please come back to us.

 
Ann