Error while scanning Typescript files

Hello, I’m scanning a Node.js / Typescript project that runs the SonarScanner properly, but there are 30-40 files (out of about 1000 files) that get this error:

ERROR: Failed to analyze file [<masked>/get-post-processing-step-for-id.test.js] from TypeScript: Maximum call stack size exceeded
Occurred while linting <masked>/get-post-processing-step-for-id.test.js:17
ERROR: Failed to analyze file [<masked>/delete-encrypted-configuration.js] from TypeScript: Maximum call stack size exceeded
Occurred while linting <masked>/delete-encrypted-configuration.js:26
ERROR: Failed to analyze file [<masked>/jobs.js] from TypeScript: Maximum call stack size exceeded
Occurred while linting <masked>/jobs.js:34
ERROR: Failed to analyze file [<masked>/data_source.js] from TypeScript: Maximum call stack size exceeded
Occurred while linting <masked>/data_source.js:39
ERROR: Failed to analyze file [<masked>/service-desk.test.js] from TypeScript: Maximum call stack size exceeded

For those files I can’t see in SonarQube the number of lines, I can see coverage and duplication is always 0% (not sure if it’s true). Some other similar files in the same folders are scanned properly. The lines referenced don’t have any evident pattern but most of them relate to functions that read from the database (but this is backend code so that type of functions are everywhere)

Some additional info:
*We host our own SonarQube server
*Analyzing on SonarQube server 8.6.0
*Version of TypeScript used during analysis: 3.8.3

Any ideas?
Thanks!

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:

8.6 → 8.9.10 → 9.9 → 10.1 (last step optional)

You may find these resources 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.

Thanks Colin we are in the process of upgrading, hopefully it’s fixed in later versions. If not I will come back to you.

Cheers
Juan