Sonarqube scan fails: Errors occurred: ERROR: No inputs were found in config file tsconfig.json c#

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • Sonarcloud.io in combination with “dotnet-sonarscanner”: “version”: “4.10.0”, and .NET Core SDKs installed: 3.1.402 and Version: 3.1.8. Windows (Azure DevOps), Mac OS and Linux (Github Action) java --version openjdk 11.0.8 2020-07-14
  • what are you trying to achieve
    run a successful scan with no errors. Like yesterday.
Error: One or more errors occurred. (Errors occurred: ERROR: No inputs were found in config file 'tsconfig.json'. Specified 'include' paths were '["src"]' and 'exclude' paths were '[]'., ERROR: No inputs were found in config file 'tsconfig.json'. Specified 'include' paths were '["src"]' and 'exclude' paths were '[]'., ERROR: No inputs were found in config file 'tsconfig.json'. Specified 'include' paths were '["src"]' and 'exclude' paths were '[]'., ERROR: No inputs were found in config file 'tsconfig.json'. Specified 'include' paths were '["src"]' and 'exclude' paths were '[]'., ERROR: No inputs were found in config file 'tsconfig.json'. Specified 'include' paths were '["src"]' and 'exclude' paths were '[]'., ERROR: No inputs were found in config file 'tsconfig.json'. Specified 'include' paths were '["src"]' and 'exclude' paths were '[]'., ERROR: No inputs were found in config file 'tsconfig.json'. Specified 'include' paths were '["src"]' and 'exclude' paths were '[]'.)
	Errors occurred: ERROR: No inputs were found in config file 'tsconfig.json'. Specified 'include' paths were '["src"]' and 'exclude' paths were '[]'., ERROR: No inputs were found in config file 'tsconfig.json'. Specified 'include' paths were '["src"]' and 'exclude' paths were '[]'., ERROR: No inputs were found in config file 'tsconfig.json'. Specified 'include' paths were '["src"]' and 'exclude' paths were '[]'., ERROR: No inputs were found in config file 'tsconfig.json'. Specified 'include' paths were '["src"]' and 'exclude' paths were '[]'., ERROR: No inputs were found in config file 'tsconfig.json'. Specified 'include' paths were '["src"]' and 'exclude' paths were '[]'., ERROR: No inputs were found in config file 'tsconfig.json'. Specified 'include' paths were '["src"]' and 'exclude' paths were '[]'., ERROR: No inputs were found in config file 'tsconfig.json'. Specified 'include' paths were '["src"]' and 'exclude' paths were '[]'.
  • what have you tried so far to achieve this
    google it and tried exclude it. And using a default CRA-app.

The environment looks like this

StartProcess(
                "dotnet",
                new ProcessSettings {
                  Arguments = new ProcessArgumentBuilder()
                      .Append($"sonarscanner")
                      .Append($"begin")
                      .Append($"/d:sonar.host.url=\"{url}\"")
                      .Append($"/k:\"{key}\"")
                      .Append($"/n:\"AppName\"")
                      .Append($"/d:sonar.login=\"{login}\"")
                      .Append($"/d:sonar.branch.name=\"{branchName}\"")
                      .Append($"/o:" + organisation)
                      .Append($"/d:sonar.cs.opencover.reportsPaths=\"{netCoreCoverageFile}\"")
                      .Append($"/d:sonar.exclusions=\"**/clientapp/*,*webhtmlcli/**/*.js,**/wwwroot/js/**/*,**/*/Migrations/*\"")

ends with:


            "dotnet",
            new ProcessSettings {
              Arguments = new ProcessArgumentBuilder()
                  .Append($"sonarscanner")
                  .Append($"end")
                  .Append($"/d:sonar.login=\"{login}\""),

the folder contains the following tsconfig.json values

npx create-react-app my-app --template typescript

Does anyone has any suggestions? Is the above information complete?

Hi @dion,

Can you please share a piece of log that appeared before this error? It’s not clear what component is it coming from just from the error itself.