8000 Nx reads files outside `workspaceRoot` and hangs · Issue #30999 · nrwl/nx · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Nx reads files outside workspaceRoot and hangs #30999

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

Open
1 of 4 tasks
axiac opened this issue May 2, 2025 · 0 comments
Open
1 of 4 tasks

Nx reads files outside workspaceRoot and hangs #30999

axiac opened this issue May 2, 2025 · 0 comments

Comments

@axiac
Copy link
axiac commented May 2, 2025

Current Behavior

The command NX_DAEMON=false node_modules/.bin/nx show projects hangs.

Expected Behavior

The command NX_DAEMON=false node_modules/.bin/nx show projects completes in a reasonable time (seconds).

GitHub Repo

No response

Steps to Reproduce

It is similar and related to #30997, with a small difference on step 3.

  1. Create an application that uses Nx, (optionally Lerna) and contains multiple packages in ~/projects/project-1 and configure it properly to manage multiple packages.
  2. Run NX_DAEMON=false node_modules/.bin/nx show projects and confirm that it lists all the packages described in package.json under the workspaces key.
  3. Create a .gitignore file in ~/projects (or directly in ~) and put in it:
*
  1. Run NX_DAEMON=false node_modules/.bin/nx show projects and expect it a reasonable time to complete. It never completes, it hangs. It does not complete even when Ctrl-C is pressed.

Note:
NX_DAEMON=false is used to force the CLI command do the processing, to create a minimum reproducible example. Using the daemon produce the same outcome (the command never ends) with the difference that now the daemon hangs and the CLI command can be interrupted using Ctrl-C.

Nx Report

NX   Report complete - copy this into the issue template

Node           : 20.18.3
OS             : darwin-arm64
Native Target  : aarch64-macos
npm            : 10.9.2

nx          : 20.8.1
lerna       : 8.2.1
@nx/devkit  : 20.8.1
typescript  : 5.7.3
---------------------------------------
Cache Usage: 0.00 B / 92.64 GB

Failure Logs

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

The issue affects all commands that are based on the outcome of show projects.

It is related to #30997 and has the same cause. Please check the "Additional Information" on #30997 for details.

@axiac axiac added the type: bug label May 2, 2025
@axiac axiac changed the title Nx reads files outside workspaceRoot and hangs Nx reads files outside workspaceRoot and hangs May 6, 2025
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
0