harsha509
(Sri Harsha)
June 1, 2023, 8:22am
1
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
ganncamp
(G Ann Campbell)
June 2, 2023, 1:52pm
2
Hi,
Welcome back.
What’s your SonarQube version?
Ann
harsha509
(Sri Harsha)
June 3, 2023, 5:38am
3
HI,
its Developer Edition - Version 10.0 (build 68432)
1 Like
ganncamp
(G Ann Campbell)
June 5, 2023, 1:21pm
5
Hi,
Thanks for the update. I’ve flagged this for the language experts.
Ann
harsha509
(Sri Harsha)
June 9, 2023, 5:33am
6
Thanks Ann,
Do we have any workaround for now ?
saberduck
(Tibor Blenessy)
June 9, 2023, 8:30am
7
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.
harsha509
(Sri Harsha)
June 14, 2023, 3:32pm
9
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
ganncamp
(G Ann Campbell)
June 14, 2023, 5:40pm
10
Hi Sri,
At the bottom of this page you can sign up to get notifications of new SQ releases.
HTH,
Ann
1 Like