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

@nx/js:lib generator throws "Cannot find configuration for '@tryout-nx/pkg1'" #30089

Open
1 of 4 tasks
zaicevas opened this issue Feb 18, 2025 · 0 comments
Open
1 of 4 tasks

Comments

@zaicevas
Copy link

zaicevas commented Feb 18, 2025

Current Behavior

 NX   Cannot find configuration for '@tryout-nx/pkg1'

Error: Cannot find configuration for '@tryout-nx/pkg1'
    at readProjectConfiguration (/private/var/folders/f0/t6q4hc8n6wqcwxxnzqqwg4p40000gp/T/tmp-95684-aPNPyku7LVCh/node_modules/.pnpm/[email protected]/node_modules/nx/src/generators/utils/project-configuration.js:135:15)
    at normalizeOptions (/private/var/folders/f0/t6q4hc8n6wqcwxxnzqqwg4p40000gp/T/tmp-95684-aPNPyku7LVCh/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected][email protected]._k5qxbhxm6cpy4uzj2ty6fffxwy/node_modules/@nx/jest/src/generators/configuration/configuration.js:47:59)
    at configurationGeneratorInternal (/private/var/folders/f0/t6q4hc8n6wqcwxxnzqqwg4p40000gp/T/tmp-95684-aPNPyku7LVCh/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected][email protected]._k5qxbhxm6cpy4uzj2ty6fffxwy/node_modules/@nx/jest/src/generators/configuration/configuration.js:59:21)
    at configurationGenerator (/private/var/folders/f0/t6q4hc8n6wqcwxxnzqqwg4p40000gp/T/tmp-95684-aPNPyku7LVCh/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected][email protected]._k5qxbhxm6cpy4uzj2ty6fffxwy/node_modules/@nx/jest/src/generators/configuration/configuration.js:56:12)
    at addJest (/Users/tomas.zaicevas/reps/tryout-nx/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@[email protected]_@swc+helpers@0_gbfllekea2bbjhqjzh5ji6b3u4/node_modules/@nx/js/src/generators/library/library.js:494:18)
    at libraryGeneratorInternal (/Users/tomas.zaicevas/reps/tryout-nx/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@[email protected]_@swc+helpers@0_gbfllekea2bbjhqjzh5ji6b3u4/node_modules/@nx/js/src/generators/library/library.js:90:36)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async /Users/tomas.zaicevas/reps/tryout-nx/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__@[email protected]_ty_jfobu6ufyo2o2vxxyxvefuu2ym/node_modules/nx/src/command-line/generate/generate.js:240:26
    at async handleErrors (/Users/tomas.zaicevas/reps/tryout-nx/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__@[email protected]_ty_jfobu6ufyo2o2vxxyxvefuu2ym/node_modules/nx/src/utils/handle-errors.js:8:24)
    at async Object.handler (/Users/tomas.zaicevas/reps/tryout-nx/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__@[email protected]_ty_jfobu6ufyo2o2vxxyxvefuu2ym/node_modules/nx/src/command-line/generate/command-object.js:13:22)

Expected Behavior

Library is generated. I have narrowed that the issue is due to choosing either eslint or jest.

GitHub Repo

https://github.com/zaicevas/nx-reproducible-issue

Steps to Reproduce

  1. Clone repo
  2. npx nx g @nx/js:lib packages/pkg1 --publishable --importPath=@my-org/pkg1
  3. Choose tsc -> eslint -> jest

Nx Report

Node           : 20.17.0
OS             : darwin-arm64
Native Target  : aarch64-macos
pnpm           : 9.11.0

nx (global)  : 20.4.1
nx           : 20.4.4
@nx/js       : 20.4.4
typescript   : 5.7.3
---------------------------------------
Registered Plugins:
@nx/js/typescript

Failure Logs

See above.

Package Manager Version

pnpm 9.11.0

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants