Closed andreaSimonePorceddu closed 9 months ago
I managed to fix it by running:
yarn nx reset
Closing the issue.
Sorry, I'm going to reopen this, because, anyway, nx has started to create the .nx folder in the root folder, instead of into the node_modules folder. I saw that this change should be from 17 version but we are still using the 16.
Any idea about it?
Experiencing same thing I am not anyhow associated to the issue author.
@Erbenos when it started to do it?
Yesterday 10am GMT.
nx report
:
> NX Report complete - copy this into the issue template
Node : 16.15.1
OS : darwin-arm64
npm : 8.11.0
nx : 16.7.4
@nx/js : 16.7.4
@nx/jest : 16.7.4
@nx/linter : 16.7.4
@nx/workspace : 16.7.4
@nx/angular : 16.7.4
@nx/cypress : 16.7.4
@nx/devkit : 16.7.4
@nx/eslint-plugin : 16.7.4
@nx/nest : 16.7.4
@nx/node : 16.7.4
@nx/plugin : 16.7.4
@nx/storybook : 16.7.4
@nrwl/tao : 16.7.4
@nx/web : 16.7.4
@nx/webpack : 16.7.4
nx-cloud : 16.4.0
typescript : 5.1.6
Community plugins:
@compodoc/compodoc : 1.1.21
@storybook/angular : 7.4.0
ngx-daterangepicker-material : 6.0.4
ngx-toastr : 17.0.2
nx-stylelint : 15.0.0
<omitting workspace plugins>
Removing all cache folders manually allows commands to pass for a time, but they eventually again degrade to the error you already provided.
Yesterday 10am GMT.
node -v v16.15.1 npm -v 8.11.0
Mac
nx-report all green. Removing all cache folders manually allows commands to pass for a time, but they eventually again degrade to the error you already provided.
The same for me, which nx version are u using?
The cache location changed in v17 - if you downgrade to nx 16 you'd need to run nx reset
potentially to refresh the daemon (and also not have a .nx folder present, as that's picked up and used if its already there in v16+) otherwise it'll be recreated.
Swapping between version 16 + 17 on different braches or similar can thus be a bit messy.
@Erbenos what does nx report
look like?
Attached report to https://github.com/nrwl/nx-console/issues/1975. No downgrade ever took place as I never were on 17.
@AgentEnder I never switched from 17 to 16, I always used the 16. I checked the yarn.lock
and I've no reference to the 17. Do you have some remote reference when launching nx commands?
I'm experiencing the same scenario. It started happening yesterday.
Node : 20.10.0
OS : darwin-arm64
yarn : 1.22.19
nx : 16.7.4
@nx/js : 16.7.4
@nx/jest : 16.7.4
@nx/linter : 16.7.4
@nx/workspace : 16.7.4
@nx/cypress : 16.7.4
@nx/devkit : 16.7.4
@nx/eslint-plugin : 16.7.4
@nx/plugin : 16.7.4
@nx/react : 16.7.4
@nx/rollup : 16.7.4
@nx/storybook : 16.7.4
@nrwl/tao : 16.7.4
@nx/web : 16.7.4
@nx/webpack : 16.7.4
nx-cloud : 16.5.2
typescript : 5.2.2
---------------------------------------
Community plugins:
@mands/nx-playwright : 0.6.2
@nx-aws-plugin/nx-aws-cache : 3.1.0
Ah, I think this is due to Nx console using a v17 install of Nx that's not present in the workspace, which creates the .nx folder and then it fails when the default changes over to .nx but there's not expected info in there.
I'm going to transfer this over to the console repo to be worked, I don't have the context to know why console would not be picking up your installation.
we are facing same issue https://github.com/microsoft/fluentui-contrib
this makes nx console not usable for more than 1 project unfortunately. would be great if it would always use workspace installed nx version and only if not present fall back to global one.
Hey! Sorry for the slow response. I'm super busy with things right now but I should have time to look into this next week. Something is happening on initialization that's wrong...
Hey!
I just pushed a PR that should fix this. I'll cut a release soon and would be very grateful for your feedback on whether any issues persist on your end.
When you upgrade, please make sure to run nx reset
, delete the .nx
folder and restart vscode just to be sure to clean any weird leftover state.
it doesn't work @MaxKless . I have nx@19.1.0
hey @stavalfi couks you create a new issue with a detailed description of the error and your nx report? Then we can have a look again :)
Current Behavior
Since this morning, I have issues running the
nx
command with no changes to the codebase or dependencies:.nx
folder is created in project root folder (file added to the git status because the.nx
folder is not present in the.gitignore
). Till yesterday the cache was added into thenode_module
folder.I'm using the last 16 version
16.10.0
, node version 18.18.I wonder if it could be related to yesterday's release of the 17 (some common dependencies changed).
Expected Behavior
No error and nx command successfully executed, cache still placed on node_modules
GitHub Repo
No response
Steps to Reproduce
Run an nx command
Nx Report
Failure Logs
Package Manager Version
1.22.19
Operating System
Additional Information
No response