Skip to content

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

Open
@sceptre12

Description

@sceptre12

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

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