Sonar cli fails on adding allowImportingTsExtensions in tsconfig.json

sonar fails on adding allowImportingTsExtensions in tsconfig.json. it skips all ts file for scanning.

log: (due to project guidelines cannot paste complete log in here) but below is the sample

INFO: Creating TypeScript program
NFO: TypeScript configuration file /builds/automation/tsconfig.json
INFO: 209 source files to be analyzed
ERROR: Error: Unknown compiler option ‘allowImportingTsExtensions’.

and sonar fails to scan all src ts files

Hi,

Welcome back.

What’s your SonarQube version?

 
Ann

HI,

its Developer Edition - Version 10.0 (build 68432)

1 Like

Hi,

Thanks for the update. I’ve flagged this for the language experts.

 
Ann

Thanks Ann,

Do we have any workaround for now ?

Hi,

this happens because we don’t yet support TypeScript 5. We should release it in a couple of days. If you need a workaround urgently, you could create another tsconfig file without this option, which would be used only for analysis.

Hi,

Thanks for the inputs. Creating separate tsconfig is for sonar not an option for us currently!

may be I will wait for the Sonar release, Could you please let me know when it will be released?

Thanks,
Sri

Hi Sri,

At the bottom of this page you can sign up to get notifications of new SQ releases.

 
HTH,
Ann

1 Like