ERROR: Failed to analyze file [src/rucaDropdown.tsx]: Cannot read property 'map' of undefined

Hi guys
I get an error when I scan source typescript
hope to help
here is the log :

INFO: Analyzing 562 files using tsconfig: C:\Jenkins\workspace\FHM.JPG.AIRFORCE1\FHM.JPG.AIRFORCE1.JS-Sonar-Coverity-Blackduck\tsconfig.json
WARN: You are using version of TypeScript 4.3.5 which is not officially supported; supported versions >=3.2.1 ❤.8.0
INFO: 0/563 files analyzed, current file: src/App.tsx
INFO: 1/563 files analyzed, current file: src/authConfig.ts
ERROR: Failed to analyze file [src/components/IrucaDropdown/IrucaDropdown.tsx]: Cannot read property 'map' of undefined
ERROR: Failed to analyze file [src/components/IrucaTreeDropdown/IrucaDropdownTree.tsx]: Cannot read property 'map' of undefined
ERROR: Failed to analyze file [src/pages/Example/ExamplePage.tsx]: Cannot read property 'map' of undefined
ERROR: Failed to analyze file [src/pages/SE003000/SE003000FlmConfirmationValueExcel.tsx]: Cannot read property 'map' of undefined
ERROR: Failed to analyze file [src/pages/SE003000/SE003000ImplementationPlanExcel.tsx]: Cannot read property 'map' of undefined
ERROR: Failed to analyze file [src/pages/SE003000/SE003000Modal.tsx]: Cannot read property 'map' of undefined
ERROR: Failed to analyze file [src/pages/SE004001/SE004001Page.tsx]: Cannot read property 'map' of undefined
INFO: 67/563 files analyzed, current file: src/pages/SF001000/SF001000BizPopup.tsx
ERROR: Failed to analyze file [src/pages/SF001000/SF001000DummyPjCode.tsx]: Cannot read property 'map' of undefined
ERROR: Failed to analyze file [src/pages/SF001000/SF001000Page.tsx]: Cannot read property 'map' of undefined
ERROR: Failed to analyze file [src/pages/SF002000/SF002000Page.tsx]: Cannot read property 'map' of undefined
ERROR: Failed to analyze file [src/pages/SF003000/SF003000Page.tsx]: Cannot read property 'map' of undefined
INFO: 112/563 files analyzed, current file: src/pages/SF004001/SZ004001Search.tsx
ERROR: Failed to analyze file [src/pages/SF004003/SF004003TransactionPage.tsx]: Cannot read property 'map' of undefined
ERROR: Failed to analyze file [src/pages/SF004003/SF004003VersionPage.tsx]: Cannot read property 'map' of undefined
ERROR: Failed to analyze file [src/pages/SZ003000/SZ003000Excel.tsx]: Cannot read property 'map' of undefined
ERROR: Failed to analyze file [src/pages/SZ003001/SZ003001Excel.tsx]: Cannot read property 'map' of undefined
ERROR: Failed to analyze file [src/pages/SZ003002/SZ003002Excel.tsx]: Cannot read property 'map' of undefined
ERROR: Failed to analyze file [src/pages/SZ005000/SZ005000BasicInformation.tsx]: Cannot read property 'map' of undefined
INFO: 147/563 files analyzed, current file: src/pages/SZ005001/SZ005001Page.tsx
ERROR: Failed to analyze file [src/pages/SZ006000/SZ006000AggregateExcel.tsx]: Cannot read property 'map' of undefined
ERROR: Failed to analyze file [src/pages/SZ006000/SZ006000DummyPjcodeMasterExcel.tsx]: Cannot read property 'map' of undefined
ERROR: Failed to analyze file [src/pages/SZ006000/SZ006000LongExcel.tsx]: Cannot read property 'map' of undefined
ERROR: Failed to analyze file [src/pages/SZ006000/SZ006000NormalExcel.tsx]: Cannot read property 'map' of undefined
ERROR: Failed to analyze file [src/pages/SZ006000/SZ006000PjcodeMasterExcel.tsx]: Cannot read property 'map' of undefined
ERROR: Failed to analyze file [src/pages/SZ006000/SZ006000PjcodeMasterLongCopy.tsx]: Cannot read property 'map' of undefined
ERROR: Failed to analyze file [src/pages/SZ006000/SZ006000PjcodeMasterLongNew.tsx]: Cannot read property 'map' of undefined
ERROR: Failed to analyze file [src/pages/SZ006004/SZ006004Page.tsx]: Cannot read property 'map' of undefined
INFO: 183/563 files analyzed, current file: src/pages/SZ006005/Booklet/BookletDefine/BookletFunc.tsx
ERROR: Failed to analyze file [src/pages/SZ008000/SZ008000Page.tsx]: Cannot read property 'map' of undefined
ERROR: Failed to analyze file [src/pages/SZ009001/SZ009001Page.tsx]: Cannot read property 'map' of undefined
INFO: 240/563 files analyzed, current file: src/pages/SZ009002/SZ009002SpreadTable/SpreadTable.tsx
ERROR: Failed to analyze file [src/pages/SZ010005/SZ010005Modal.tsx]: Cannot read property 'map' of undefined
ERROR: Failed to analyze file [src/pages/SZ010009/SZ010009Modal.tsx]: Cannot read property 'map' of undefined
ERROR: Failed to analyze file [src/pages/SZ010010/SZ010010Modal.tsx]: Cannot read property 'map' of undefined
ERROR: Failed to analyze file [src/pages/SZ010011/SZ010011Modal.tsx]: Cannot read property 'map' of undefined
ERROR: Failed to analyze file [src/pages/SZ010012/SZ010012Modal.tsx]: Cannot read property 'map' of undefined
ERROR: Failed to analyze file [src/pages/SZ010013/SZ010013Modal.tsx]: Cannot read property 'map' of undefined
ERROR: Failed to analyze file [src/pages/SZ010014/SZ010014Modal.tsx]: Cannot read property 'map' of undefined
ERROR: Failed to analyze file [src/pages/SZ010015/SZ010015Modal.tsx]: Cannot read property 'map' of undefined
ERROR: Failed to analyze file [src/pages/SZ010016/SZ010016Modal.tsx]: Cannot read property 'map' of undefined
ERROR: Failed to analyze file [src/pages/SZ010017/SZ010017

Hey there.

A little formatting goes a long away, as well as details about your SonarQube installation (such as the version).

Based on the logs, your version of SonarQube does not support the version of Typescript you are trying to analyze

Typescript 4.3 became supported with SonarQube v9.0. The latest version of SonarQube is v9.4. Upgrading should allow you to analyze these files (and even higher version of Typescript, including v4.4 - v4.6)

i’m using sonar version 7.9.3 for the whole system so it’s not possible to upgrade
is there a way to scan without upgrading to 9.

There is not.

(And, from your logs, you’re running v8.0.0, which was never an LTS version and has been EOL for a very, very long time)

thanks you

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.