Skip to content

fix(nest): fix library generator#30157

Merged
Coly010 merged 1 commit intonrwl:masterfrom
gperdomor:fix/nest-lib-generator
Feb 25, 2025
Merged

fix(nest): fix library generator#30157
Coly010 merged 1 commit intonrwl:masterfrom
gperdomor:fix/nest-lib-generator

Conversation

@gperdomor
Copy link
Copy Markdown
Contributor

Current Behavior

Nest library generator fails because readProjectConfiguration is not returning targets property:

 NX  Generating @nx/nest:library


 NX   Cannot set properties of undefined (setting 'build')

Pass --verbose to see the stacktrace.


 *  The terminal process "/bin/zsh '-l', '-c', 'npx nx generate @nx/nest:library --directory=packages/backend/feature-typeahead --buildable=true --linter=eslint --unitTestRunner=jest --controller=true --importPath=@listing-experience/feature-typeahead --name=feature-typeahead --service=true --tags=type:lib,scope:nest --no-interactive --dry-run'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 

Expected Behavior

The library should be generated without issues

@gperdomor gperdomor requested a review from a team as a code owner February 24, 2025 18:33
@gperdomor gperdomor requested a review from Coly010 February 24, 2025 18:33
@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Feb 24, 2025 6:36pm

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented Feb 24, 2025

View your CI Pipeline Execution ↗ for commit a76b454.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 25m 1s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 16s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check --base= --he... ✅ Succeeded 6s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 5s View ↗
nx documentation ✅ Succeeded 35s View ↗

☁️ Nx Cloud last updated this comment at 2025-02-24 19:04:52 UTC

@Coly010 Coly010 merged commit b063fcd into nrwl:master Feb 25, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 3, 2025

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Mar 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants