Open
Description
Which area/package is the issue in?
@koliveira15/nx-sonarqube
Description
- Next.js monorepo on [email protected]
- version:
^4.2.1
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:
- used
npx nx g @koliveira15/nx-sonarqube:config i18n
- ran test with coverage
- 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)