-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
node-env for @nx/nest app fails to build #29731
Comments
This continues to be an issue preventing build in my repo I created a new workspace 20.3.3, used @nx/nest to create 'admin-api' app and the project .json looks legit and runs fine. BUT I put that project.json into my own repo and it does fail to build with following error which I am trying to figure out what is causing this or what my repo is missing for this to work. I would like to get my admin-api nestjs app to build any tips are appreciated thank you
|
yikes this text sequence
named inputs for production inside nx.json is showing up on generated package.json and project.json files from Nx any comments from the Nx team? Im continuing drilling into this to try some things finding easily producible infinite loops that run the OS into boot crash currently there is no functional nestjs project.json thats buildable this one is a blocker cant get my nestjs app building trying out all executors |
Current Behavior
SUBJECT: node-env search algorithm gets lost during build dev/prod
Hi, I have a repo thats traveled migration since nx@10. I use latest 20.3.3 to create a new workspace and then an @nx/nest app (nestjs api app). That nestjs app builds fine but its setup strange using run-commands and a new introduced args node-env. I took that project.json and used it as-is for my repo nestjs app previously generated by @nx/nest
generated project refers to node-env for args in generated project.json code
"args": ["node-env=production"]
no docs exist on this config or what dependent logic exists within NX to do its function
it is being handed off during task runs but that logi8c does not exist for my migrated 20.3.3 repo ???
algorithm falls searching in my repo at 20.3.3
figuring out why it works as-is with 20.3.3 has been tedious
I migrated my repo to 20.3.3 to no avail sifting thru all json config files
and its got to be some needle in the haystack config somewhere
api build blocked
Expected Behavior
build should be graceful
dropping .env and local.env config files within the scaffold fails to remedy
GitHub Repo
https://github.com/nhhockeyplayer
Steps to Reproduce
/Users/meanstack02/new/2025/january/node_modules/.bin/nx g @nx/nest:application --directory=api --name=api --no-interactive --dry-run
this generated code appears inside the generated code of @nx/nest generator
here is the project.json from new workspace 20.3.3 @nx/nest generator
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
The text was updated successfully, but these errors were encountered: