Skip to content

Cannot run sonar on mono-repo lib, tsquery_1.ast error #125

Open
@devzom

Description

@devzom

Which area/package is the issue in?

@koliveira15/nx-sonarqube

Description

Trying to configure this lib in a monorepo apps + libs.
Took an 1st try on i18n lib. Configured everything based on docs.
Trying local first so:

  1. used npx nx g @koliveira15/nx-sonarqube:config i18n
  2. ran test with coverage
  3. then trying to run npx nx sonar i18n , it runs successfully tests
    but then getting an error:

seems like all config are correct.

What can be the issue or a fix?

The SonarQube scan failed for project 'i18n'
TypeError: (0 , tsquery_1.ast) is not a function
    at /Users/user/dev/projectx/node_modules/@koliveira15/nx-sonarqube/src/executors/scan/utils/utils.js:106:57
    at Array.forEach (<anonymous>)
    at /Users/user/dev/projectx/node_modules/@koliveira15/nx-sonarqube/src/executors/scan/utils/utils.js:83:14
    at Generator.next (<anonymous>)
    at fulfilled (/Users/user/dev/projectx/node_modules/tslib/tslib.js:167:62)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

when trying to downgrade the package to "4.1.1" then getting another one

resolved package json from libs/i18n, package version:0.9.0
The SonarQube scan failed for project 'i18n'
TypeError: sonarQubeScanner.async is not a function
    at /Users/user/dev/projectx/node_modules/@koliveira15/nx-sonarqube/src/executors/scan/utils/utils.js:154:48
    at Generator.next (<anonymous>)
    at fulfilled (/Users/user/dev/projectx/node_modules/tslib/tslib.js:167:62)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions