DEV Community

Discussion on: SonarQube Pull Requests in Bitbucket Cloud

Collapse
ivayloc profile image
Ivaylo Cherkezov

I have tried your setup, but it worked partially, I had to downgrade to SonarQube-7.6-community, and still not working I am getting "sonar ERROR: Error: Cannot find module 'typescript'" while it tries to analyze my Angular project

Collapse
serializator profile image
Julian van den Berkmortel Author

Did you try running "npm install" (assuming TypeScript is in there as a dependency) before running the Sonar Scanner?

I wrote this article a while ago and I do believe it is a solution for some people but not a reliable one. It depends on an outdated version of SonarQube because of the preview mode which was deprecated.

I will add a notice to make others reading this aware of the fact that using this solution also means being stuck on a specific SonarQube version until maybe another similar solution for more recent versions comes across.