Closed destnguyxn2 closed 1 year ago
@koliveira15 The issue for me is that I define a package.json
at the root level, and not for each application. Reading the code in utils.js, I notice that it is expecting each application to have a package.json
file. I suggest you add a fallback to check the root directory for a package.json
file and use the version from there
@destnguyxn a "quick fix" to remove the error is to add projectVersion
to your sonar
options:
{
...
"sonar": {
"executor": "@koliveira15/nx-sonarqube:scan",
"options": {
"projectVersion": "1.0",
...
}
}
}
}
@gcko the plugin does have a fallback to the root directory when not found the package.json
, it just the error message seems annoying and may cause misunderstanding.
Thank you for the quick fix 😄
@destnguyxn ah! well in that case, the solution would be to change it from an ERROR to an INFO message, or WARN
Hello,
When I try to run the plugin using
nx run-many
, the plugin try to find thepackage.json
in the dỉectory of each application end raise an errorENOENT: no such file or directory
since there is onlyproject.json
It is not make the command failed but seem annoying when I try to read the console log. Could you check this please?
Thank you