Unresolved path with typescript & sonar.modules

Hello, i’m getting trouble to reach code coverage on SonarQube on project with typescript

  • SonarQube Version 7.9.2
  • SonarJS 6.2

Config:

sonar.modules=apps

apps.sonar.language=js
apps.sonar.sources=.
apps.sonar.sourceEncoding=UTF-8
apps.sonar.javascript.lcov.reportPaths=apps/src/test/coverage-unit-test/lcov.info

I’m using modules since it’s a multistack with Java (I removed its config since it should not be useful).

WARN: Could not resolve 1 file paths in [/datadrive/path/to/s/apps/src/test/coverage-unit-test/lcov.info]

14:31:55.952 DEBUG: Unresolved paths:

apps/src/js/polyfills.ts

I tried to play with the path, but those are all correct.
In SonarQube I can find the file apps/src/js/polyfills.ts

Is there something wrong here? I saw there’s a SonarJS 6.2.1, could it fix the problem?

I have other projects with typescript without modules and it works fine.

Thanks.

Solved by removing sonar.module usage

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.