-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Fatal messages running Nx commands after upgrade to v8.12 #2404
Comments
Can you please provide a repo showcasing the issue to help us debug this issue? |
Getting the same issue. Might it be because our Nx workspace root is not the git repo root? Will try to set up a repro. |
Sorry, I haven't had a chance to work on the reproduction repo due to my current deadlines. However, I am no longer getting these error messages after upgrading Nx to |
I was wrong closing this issue prematurely. I still see the same messages in npx create-nx-workspace dl --preset=empty --cli=angular
cd dl
npm install --save-dev @nrwl/angular
npm install --save-dev @nrwl/nest
npm install --save-dev @nrwl/node
npx ng g @nrwl/angular:app web --directory --tags=scope:web,type:app (SASS, no routing)
npx ng g @nrwl/nest:app api --directory --tags=scope:api,type:app
npx ng g @nrwl/nest:app api-e2e --directory --tags=scope:api-e2e,type:app
npx ng g @nrwl/node:lib util-test --directory shared --tags=scope:shared,type:util --linter eslint
npx nx affected:build
fatal: Path 'dl/package.json' exists, but not 'package.json'.
Did you mean 'master:dl/package.json' aka 'master:./package.json'?
fatal: Path 'dl/angular.json' exists, but not 'angular.json'.
Did you mean 'master:dl/angular.json' aka 'master:./angular.json'?
fatal: Path 'dl/nx.json' exists, but not 'nx.json'.
Did you mean 'master:dl/nx.json' aka 'master:./nx.json'?
fatal: Path 'dl/package.json' exists, but not 'package.json'.
Did you mean 'master:dl/package.json' aka 'master:./package.json'?
fatal: Path 'dl/tsconfig.json' exists, but not 'tsconfig.json'.
Did you mean 'master:dl/tsconfig.json' aka 'master:./tsconfig.json'?
fatal: Path 'dl/nx.json' exists, but not 'nx.json'.
Did you mean 'master:dl/nx.json' aka 'master:./nx.json'?
fatal: Path 'dl/angular.json' exists, but not 'angular.json'.
Did you mean 'master:dl/angular.json' aka 'master:./angular.json'?
... This is my env: npx nx report
> NX Report complete - copy this into the issue template
@nrwl/angular : 9.0.4
@nrwl/cli : 9.0.4
@nrwl/cypress : 9.0.4
@nrwl/eslint-plugin-nx : 9.0.4
@nrwl/express : Not Found
@nrwl/jest : 9.0.4
@nrwl/linter : 9.0.4
@nrwl/nest : 9.0.4
@nrwl/next : Not Found
@nrwl/node : 9.0.4
@nrwl/react : Not Found
@nrwl/schematics : Not Found
@nrwl/tao : 9.0.4
@nrwl/web : Not Found
@nrwl/workspace : 9.0.4
typescript : 3.7.5 |
@demisx could you push the repo with a repro to github? |
@vsavkin Sure. Here it is. I've created the repo using commands in my previous comment and was able to see those errors . https://github.com/demisx/2404-nx-fatal-messages. Please note you'd have to be on the git clone git@github.com:demisx/2404-nx-fatal-messages.git
cd 2404-nx-fatal-messages
git checkout fatal-errors
cd dl
npm install
npx nx affected:build |
I can add something here: these fatal notes only appear if the file has changes... e.g. I make changes in more importantly - the OP didn't mention this in his post - this kills the purpose of the affected command as is prevents nx to do porper affected comparison and just runs the command in all projects
(also having the nx workspace in a subfolder of the repository root) PS:
|
@ctaepper Both, |
ok this makes sense. but I guess you can close your ticket then, because it is fixed |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Expected Behavior
No errors messages running Nx commands
Current Behavior
After upgrade to Nx 8.12 following https://nx.dev/angular/guides/update I am seeing a bunch of fatal messages similar to below after running Nx related commands, though the commands seem to work OK so far:
The text was updated successfully, but these errors were encountered: