ERROR: No TypeScript compiler found in your project, analysis of typescript files is aborted

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    SonarQube Version 6.7
  • what are you trying to achieve
    Scan Typescript Project
  • what have you tried so far to achieve this
    Installing Typescript as a dev dependency following instructions here and here

I am getting the following error in my sonarqube scan for a node + angular application:

ERROR: No TypeScript compiler found in your project, analysis of typescript files is aborted

I’ve double checked package.json and see that "typescript": "~2.9.2" is marked as a dev dependency. I’m quite new to sonarqube - any ideas about where there is an issue with the TS compiler would be great!

UPDATE: I’ve also tried simply installing typescript globally. I can see that Typescript is installed by running tsc, yet am still encountering this error.

Hi @Micaela_Connors,

Firstly I’d suggest you to upgrade SonarQube to the new LTS version: 7.9

Could you please check that the typescript dependency is actually present in the node_modules folder? How are you running the analysis: manually in your local machine or from a CI environment?

Was this ever solved? I’m running into the same problem?