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
What’s your SonarQube version?
its Developer Edition - Version 10.0 (build 68432)
Thanks for the update. I’ve flagged this for the language experts.
Do we have any workaround for now ?
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.
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?
At the bottom of this page you can sign up to get notifications of new SQ releases.