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/nest cannot generate buildable library #30261

Open
1 of 4 tasks
Playjasb2 opened this issue Mar 4, 2025 · 0 comments
Open
1 of 4 tasks

@nx/nest cannot generate buildable library #30261

Playjasb2 opened this issue Mar 4, 2025 · 0 comments

Comments

@Playjasb2
Copy link

Playjasb2 commented Mar 4, 2025

Current Behavior

When using the @nx/nest to generate a buildable library, I get an error saying it failed to create project configurations. I am using pnpm.

Expected Behavior

The desired NestJS being created.

GitHub Repo

No response

Steps to Reproduce

  1. Execute: nx g @nx/nest:library services --buildable=true --verbose
  2. Select linter to be eslint and set unit tester to be jest.
  3. Observe the error.

Nx Report

Node           : 20.8.0
OS             : darwin-arm64
Native Target  : aarch64-macos
pnpm           : 10.5.2

nx (global)     : 20.4.6
nx              : 20.4.6
@nx/js          : 20.4.6
@nx/devkit      : 20.4.6
@nx/nest        : 20.4.6
@nx/next        : 20.4.6
@nx/node        : 20.4.6
@nx/playwright  : 20.4.6
@nx/react       : 20.4.6
@nx/rollup      : 20.4.6
@nx/web         : 20.4.6
@nx/webpack     : 20.4.6
typescript      : 5.7.3
---------------------------------------
Registered Plugins:
@nx/js/typescript
@nx/next/plugin
@nx/playwright/plugin
@nx/webpack/plugin
@nx/rollup/plugin

Failure Logs

ProjectConfigurationsError: Failed to create project configurations
    at /Users/username/Desktop/test-mono/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__@[email protected]_767375eb4d6dac4186e19c8fb304902e/node_modules/nx/src/project-graph/utils/project-configuration-utils.js:298:19
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _addPluginInternal (/Users/username/Desktop/test-mono/node_modules/.pnpm/@[email protected][email protected]_@[email protected]_@[email protected]_@[email protected]._e8288e0478821a919d542a647f799800/node_modules/@nx/devkit/src/utils/add-plugin.js:54:31)
    at jestInitGeneratorInternal (/Users/username/Desktop/test-mono/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@[email protected]_@swc+h_622c78586d76e34447abb508fe082261/node_modules/@nx/jest/src/generators/init/init.js:71:13)
    at configurationGeneratorInternal (/Users/username/Desktop/test-mono/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@[email protected]_@swc+h_622c78586d76e34447abb508fe082261/node_modules/@nx/jest/src/generators/configuration/configuration.js:62:16)
    at addJest (/Users/username/Desktop/test-mono/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@[email protected]_@swc+hel_e94ad9983bbb05ca56f6c524eaddbe27/node_modules/@nx/js/src/generators/library/library.js:494:12)
    at libraryGeneratorInternal (/Users/username/Desktop/test-mono/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@[email protected]_@swc+hel_e94ad9983bbb05ca56f6c524eaddbe27/node_modules/@nx/js/src/generators/library/library.js:90:30)
    at libraryGenerator (/Users/username/Desktop/test-mono/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@[email protected]_@swc+hel_e94ad9983bbb05ca56f6c524eaddbe27/node_modules/@nx/js/src/generators/library/library.js:29:12)
    at libraryGeneratorInternal (/Users/username/Desktop/test-mono/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@[email protected]_@swc+h_9c729725a161e72b26e292024284a245/node_modules/@nx/nest/src/generators/library/library.js:19:27)
    at /Users/username/Desktop/test-mono/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__@[email protected]_767375eb4d6dac4186e19c8fb304902e/node_modules/nx/src/command-line/generate/generate.js:240:26

Package Manager Version

10.5.2

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

1 participant