Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to configure a project that has nx configurations inside of the package.json file #126

Open
sceptre12 opened this issue Dec 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sceptre12
Copy link

If possible, please provide a reproduction repository you discovered this bug in.

No response

Which area/package is the issue in?

@koliveira15/nx-sonarqube

Description

The command pnpx nx g @koliveira15/nx-sonarqube:config my-app fails whenever the application defaults to using nx configurations inside of the package.json file.

Screenshot 2024-12-27 at 3 47 30 PM

If applicable, please provide the Nx report

Screenshot 2024-12-27 at 3 50 15 PM

Please provide the exception or error you saw

NX   Cannot find configuration for 'my-app'

Error: Cannot find configuration for 'my-app'
    at readProjectConfiguration (/Users/Xavier.Thomas/projects/dgc-dev-proof-ecomm-web/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__@[email protected]_ty_ddimrabmutf7slhcoygnl7airq/node_modules/nx/src/generators/utils/project-configuration.js:129:15)
    at updateProjectConfig (/Users/Xavier.Thomas/projects/dgc-dev-proof-ecomm-web/node_modules/.pnpm/@[email protected]_@[email protected][email protected]_@[email protected]_@swc+cor_zdsnnugbntefr57pdhcxfwls7e/node_modules/@koliveira15/nx-sonarqube/src/generators/config/generator.js:43:72)
    at /Users/Xavier.Thomas/projects/dgc-dev-proof-ecomm-web/node_modules/.pnpm/@[email protected]_@[email protected][email protected]_@[email protected]_@swc+cor_zdsnnugbntefr57pdhcxfwls7e/node_modules/@koliveira15/nx-sonarqube/src/generators/config/generator.js:12:9
    at Generator.next (<anonymous>)
    at /Users/Xavier.Thomas/projects/dgc-dev-proof-ecomm-web/node_modules/.pnpm/[email protected]/node_modules/tslib/tslib.js:170:75
    at new Promise (<anonymous>)
    at Object.__awaiter (/Users/Xavier.Thomas/projects/dgc-dev-proof-ecomm-web/node_modules/.pnpm/[email protected]/node_modules/tslib/tslib.js:166:16)
    at default_1 (/Users/Xavier.Thomas/projects/dgc-dev-proof-ecomm-web/node_modules/.pnpm/@[email protected]_@[email protected][email protected]_@[email protected]_@swc+cor_zdsnnugbntefr57pdhcxfwls7e/node_modules/@koliveira15/nx-sonarqube/src/generators/config/generator.js:7:20)
    at /Users/Xavier.Thomas/projects/dgc-dev-proof-ecomm-web/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__@[email protected]_ty_ddimrabmutf7slhcoygnl7airq/node_modules/nx/src/command-line/generate/generate.js:240:32
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)


### Other information

_No response_

### I would be willing to submit a PR to fix this issue

- [X] Yes
- [ ] No
@sceptre12 sceptre12 added the bug Something isn't working label Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant