SonarCloud configuration paths and modules


I’m migrating from SonarQube to SonarCloud and I am experiencing issues with configuration of paths.

  • GitHub
  • Azure DevOps
  • C#, JS, TS

C# is running just fine, but for scanning TS and JS files we are experiencing issues.
Our TSconfig file can not be found, no matter what path I fill out. How do I know what the root is that SonarCloud uses? It does not seem to make a difference whether I set an absolute or relative path. D:\a\1\s\Sources\Solution\Feature\code\**\tsconfig.json This is what SonarCloud outputs as path, where I specified **/tsconfig.json it just pasted it to the relative path.

Also, it keeps telling me can't find module typescript.

What do I need to do to find out what paths I need to use?
How do I fix the can't find module typescript?

Hi @Danny-A and welecome to the community !

Are you using a self-hosted build agent, or a Microsoft-hosted one ?

I suggest to follow solution given on this topic : Error: Cannot find module 'typescript'

And let us know if that fixes your issue.

Thank you.