nx icon indicating copy to clipboard operation
nx copied to clipboard

Error: [readCachedProjectGraph] ERROR: No cached ProjectGraph is available

Open njsokol opened this issue 8 months ago • 7 comments

Current Behavior

We are trying to use Nx just to do linting or even sometimes building running normal pnpm exec nx run-many -t lint or build commands and they fail with this error

Error: [readCachedProjectGraph] ERROR: No cached ProjectGraph is available.

If you are leveraging \`readCachedProjectGraph()\` directly then you will need to refactor your usage to first ensure that
the ProjectGraph is created by calling \`await createProjectGraphAsync()\` somewhere before attempting to read the data.

If you encounter this error as part of running standard \`nx\` commands then please open an issue on https://github.com/nrwl/nx
    at readCachedProjectGraph (/home/myname/workspace/SFE-UX-Common-4/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]/node_modules/nx/src/project-graph/project-graph.js:44:15)
    at run (/home/myname/workspace/SFE-UX-Common-4/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]/node_modules/nx/src/command-line/run/run.js:173:69)
    at process.<anonymous> (/home/myname/workspace/SFE-UX-Common-4/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]/node_modules/nx/bin/run-executor.js:59:48)
    at process.emit (node:events:518:28)
    at process.emit (/home/myname/workspace/SFE-UX-Common-4/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]/node_modules/nx/src/native/index.js:20:23)
    at emit (node:internal/child_process:951:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:83:21)

### Expected Behavior

Would expect to be able to run these commands and have no issues

### GitHub Repo

_No response_

### Steps to Reproduce

1.


### Nx Report

```shell
Node           : 20.12.2
OS             : linux-x64
Native Target  : x86_64-linux
pnpm           : 8.15.8

nx                 : 20.7.2
@nx/js             : 20.7.2
@nx/jest           : 20.7.2
@nx/eslint         : 20.7.2
@nx/workspace      : 20.7.2
@nx/cypress        : 20.7.2
@nx/devkit         : 20.7.2
@nx/eslint-plugin  : 20.7.2
@nx/playwright     : 20.7.2
@nx/plugin         : 20.7.2
@nx/storybook      : 20.7.2
@nx/vite           : 20.7.2
@nx/web            : 20.7.2
typescript         : 5.3.3
---------------------------------------
Registered Plugins:
@nx/storybook/plugin
@nx/eslint/plugin
@nx/playwright/plugin
---------------------------------------
Local workspace plugins:
         @sfe/workspace-plugin
---------------------------------------
Cache Usage: 214.53 KB / 100.69 GB

Failure Logs


Package Manager Version

pnpm 8.15.8

Operating System

  • [x] macOS
  • [x] Linux
  • [ ] Windows
  • [ ] Other (Please specify)

Additional Information

We have tried the latest version of nx and still failing. This was seen by going from my 20.0.3 -> 20.6.x || 20.7.x

njsokol avatar Apr 10 '25 13:04 njsokol

Downgraded to 20.0.3 and no longer see the error happening.

njsokol avatar Apr 10 '25 13:04 njsokol

nx.json

{
  "release": {
    "projects": ["packages/react", "packages/react-components/*", "packages/merch-components/*"],
    "projectsRelationship": "independent",
    "versionPlans": {
      "ignorePatternsForPlanCheck": [
        "**/.storybook/**/*",
        "**/playwright/**/*",
        "**/stories/**/*",
        "**/jest.*",
        "**/.eslintrc.json",
        "**/*.md",
        "**/playwright.config.ts",
        "**/project.json",
        "**/*.spec.tsx",
        "**/*.playwright.spec.tsx",
        "**/*.spec.tsx.snap",
        "**/*.playwright.spec.tsx.snap"
      ]
    },
    "changelog": {
      "projectChangelogs": true
    },
    "version": {
      "generatorOptions": {
        "preserveLocalDependencyProtocols": true,
        "currentVersionResolver": "registry",
        "fallbackCurrentVersionResolver": "disk",
        "specifierSource": "version-plans",
        "updateDependents": "auto"
      }
    }
  },
  "targetDefaults": {
    "build": {
      "dependsOn": ["^build"],
      "cache": true
    },
    "@nx/js:tsc": {
      "cache": true,
      "dependsOn": ["^build"],
      "inputs": ["default", "^default"]
    },
    "@nx/jest:jest": {
      "cache": true,
      "inputs": ["default", "^default", "{workspaceRoot}/jest.preset.js"],
      "outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
      "options": {
        "jestConfig": "{projectRoot}/jest.config.ts",
        "passWithNoTests": true
      },
      "configurations": {
        "ci": {
          "ci": true,
          "codeCoverage": true
        }
      }
    },
    "@nx/playwright:playwright": {
      "cache": true,
      "inputs": ["default", "^default", "{projectRoot}/playwright.config.ts"],
      "options": {
        "passWithNoTests": true
      },
      "configurations": {
        "ci": {
          "ci": true,
          "codeCoverage": true
        }
      }
    }
  },
  "plugins": [
    {
      "plugin": "@nx/storybook/plugin",
      "options": {
        "serveStorybookTargetName": "storybook",
        "buildStorybookTargetName": "build-storybook",
        "testStorybookTargetName": "test-storybook",
        "staticStorybookTargetName": "static-storybook"
      }
    },
    {
      "plugin": "@nx/eslint/plugin",
      "options": {
        "targetName": "eslint:lint",
        "extensions": ["ts", "tsx", "js", "jsx", "html"]
      }
    },
    {
      "plugin": "@nx/playwright/plugin",
      "inputs": ["default", "^default", "{projectRoot}/playwright.config.ts"],
      "options": {
        "targetName": "test-playwright"
      }
    }
  ]
}

njsokol avatar Apr 10 '25 13:04 njsokol

This is still a problem in nx 21, pls fix

jamesbhobbs avatar May 15 '25 11:05 jamesbhobbs

Had same issue and could resolve it by resetting cache with nx reset. After that just ran a task that is forcing to create graph. I've chosen nx run-many --tagret=lint

Tom4U avatar May 21 '25 08:05 Tom4U

I'm also running into this more often. I might have a serve target that depends on a some codegen stuff. Everything seems to work fine, than I exit the process and the next time I'll run the command I get this error and will continue to get this error untill I do an npm ci.

A nx reset does not work.

JesseZomer avatar May 26 '25 13:05 JesseZomer

I need to run nx reset between each time I run lint. It's impossible to run nx run-many --tagret=lint as the readCachedProjectGraph error happens approximately every 1-2 runs of lint.

EDIT: More specifically it happens if the last run of lint for that project failed.

supernaut avatar May 27 '25 15:05 supernaut

I tried nx reset and whatnot but didn't work for me.

What worked was killing all Nx daemon processes:

ps aux | grep 'nx/src' | grep -v grep | awk '{print $2}' | xargs kill

A day later, running ps aux shows there are multiple Nx processes running again. According to the docs though, there should only be one process per Nx workspace. And since I'm only working in one Nx workspace, this seems like a bug.

ps aux | grep 'nx/src'
$ ps aux | grep 'nx/src'
osame            32762   0.0  0.1 1621888704  37952   ??  Ss   Mon11PM   0:00.43 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) ~/Developer/github/project/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]__@[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /var/folders/vf/b_h76qmn0wl_q4_5j017tn2w0000gn/T/plugin32720-7.sock
osame            32761   0.0  0.1 1621870272  38032   ??  Ss   Mon11PM   0:00.44 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) ~/Developer/github/project/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]__@[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /var/folders/vf/b_h76qmn0wl_q4_5j017tn2w0000gn/T/plugin32720-6.sock
osame            32759   0.0  0.1 1621906112  37968   ??  Ss   Mon11PM   0:00.46 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) ~/Developer/github/project/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]__@[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /var/folders/vf/b_h76qmn0wl_q4_5j017tn2w0000gn/T/plugin32720-5.sock
osame            32753   0.0  0.1 1621948432  45136   ??  Ss   Mon11PM   0:00.62 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) ~/Developer/github/project/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]__@[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /var/folders/vf/b_h76qmn0wl_q4_5j017tn2w0000gn/T/plugin32720-4.sock
osame            32752   0.0  0.1 1621938192  45248   ??  Ss   Mon11PM   0:00.47 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) ~/Developer/github/project/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]__@[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /var/folders/vf/b_h76qmn0wl_q4_5j017tn2w0000gn/T/plugin32720-3.sock
osame            32745   0.0  0.1 1621946384  45248   ??  Ss   Mon11PM   0:00.63 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) ~/Developer/github/project/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]__@[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /var/folders/vf/b_h76qmn0wl_q4_5j017tn2w0000gn/T/plugin32720-2.sock
osame            32743   0.0  0.1 1621888704  37632   ??  Ss   Mon11PM   0:00.61 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) ~/Developer/github/project/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]__@[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /var/folders/vf/b_h76qmn0wl_q4_5j017tn2w0000gn/T/plugin32720-1.sock
osame            32742   0.0  0.1 1621878464  37760   ??  Ss   Mon11PM   0:00.48 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) ~/Developer/github/project/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]__@[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /var/folders/vf/b_h76qmn0wl_q4_5j017tn2w0000gn/T/plugin32720-0.sock
osame            32634   0.0  0.1 1621886656  37952   ??  Ss   Mon11PM   0:00.46 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) ~/Developer/github/project/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]__@[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /var/folders/vf/b_h76qmn0wl_q4_5j017tn2w0000gn/T/plugin32442-7.sock
osame            32633   0.0  0.1 1621871296  38048   ??  Ss   Mon11PM   0:00.46 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) ~/Developer/github/project/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]__@[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /var/folders/vf/b_h76qmn0wl_q4_5j017tn2w0000gn/T/plugin32442-6.sock
osame            32632   0.0  0.1 1621860032  38064   ??  Ss   Mon11PM   0:00.48 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) ~/Developer/github/project/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]__@[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /var/folders/vf/b_h76qmn0wl_q4_5j017tn2w0000gn/T/plugin32442-5.sock
osame            32630   0.0  0.1 1621939216  45136   ??  Ss   Mon11PM   0:00.67 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) ~/Developer/github/project/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]__@[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /var/folders/vf/b_h76qmn0wl_q4_5j017tn2w0000gn/T/plugin32442-4.sock
osame            32629   0.0  0.1 1621948432  45280   ??  Ss   Mon11PM   0:00.50 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) ~/Developer/github/project/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]__@[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /var/folders/vf/b_h76qmn0wl_q4_5j017tn2w0000gn/T/plugin32442-3.sock
osame            32628   0.0  0.1 1621931024  45216   ??  Ss   Mon11PM   0:00.67 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) ~/Developer/github/project/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]__@[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /var/folders/vf/b_h76qmn0wl_q4_5j017tn2w0000gn/T/plugin32442-2.sock
osame            32627   0.0  0.1 1621897920  37680   ??  Ss   Mon11PM   0:00.63 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) ~/Developer/github/project/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]__@[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /var/folders/vf/b_h76qmn0wl_q4_5j017tn2w0000gn/T/plugin32442-1.sock
osame            32624   0.0  0.1 1621887680  37680   ??  Ss   Mon11PM   0:00.52 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) ~/Developer/github/project/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]__@[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /var/folders/vf/b_h76qmn0wl_q4_5j017tn2w0000gn/T/plugin32442-0.sock
osame            36302   0.0  0.1 1621880000  38000   ??  Ss   Mon06PM   0:00.46 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) ~/Developer/github/project/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]__@[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /var/folders/vf/b_h76qmn0wl_q4_5j017tn2w0000gn/T/plugin40933-7.sock
osame            36300   0.0  0.1 1621878464  38128   ??  Ss   Mon06PM   0:00.44 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) ~/Developer/github/project/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]__@[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /var/folders/vf/b_h76qmn0wl_q4_5j017tn2w0000gn/T/plugin40933-6.sock
osame            36299   0.0  0.1 1621879488  38016   ??  Ss   Mon06PM   0:00.47 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) ~/Developer/github/project/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]__@[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /var/folders/vf/b_h76qmn0wl_q4_5j017tn2w0000gn/T/plugin40933-5.sock
osame            36298   0.0  0.1 1621871296  38064   ??  Ss   Mon06PM   0:00.46 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) ~/Developer/github/project/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]__@[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /var/folders/vf/b_h76qmn0wl_q4_5j017tn2w0000gn/T/plugin91087-7.sock
osame            36296   0.0  0.1 1621948432  45312   ??  Ss   Mon06PM   0:00.60 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) ~/Developer/github/project/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]__@[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /var/folders/vf/b_h76qmn0wl_q4_5j017tn2w0000gn/T/plugin40933-4.sock
osame            36297   0.0  0.1 1621887680  38048   ??  Ss   Mon06PM   0:00.46 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) ~/Developer/github/project/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]__@[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /var/folders/vf/b_h76qmn0wl_q4_5j017tn2w0000gn/T/plugin91087-6.sock
osame            36293   0.0  0.1 1621887680  37920   ??  Ss   Mon06PM   0:00.46 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) ~/Developer/github/project/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]__@[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /var/folders/vf/b_h76qmn0wl_q4_5j017tn2w0000gn/T/plugin91087-5.sock
osame            36295   0.0  0.1 1621946384  45408   ??  Ss   Mon06PM   0:00.49 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) ~/Developer/github/project/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]__@[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /var/folders/vf/b_h76qmn0wl_q4_5j017tn2w0000gn/T/plugin40933-3.sock
osame            36294   0.0  0.1 1621936656  45264   ??  Ss   Mon06PM   0:00.62 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) ~/Developer/github/project/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]__@[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /var/folders/vf/b_h76qmn0wl_q4_5j017tn2w0000gn/T/plugin40933-2.sock
osame            36292   0.0  0.1 1621870272  37728   ??  Ss   Mon06PM   0:00.59 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) ~/Developer/github/project/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]__@[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /var/folders/vf/b_h76qmn0wl_q4_5j017tn2w0000gn/T/plugin40933-1.sock
osame            36291   0.0  0.1 1621879488  37616   ??  Ss   Mon06PM   0:00.48 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) ~/Developer/github/project/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]__@[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /var/folders/vf/b_h76qmn0wl_q4_5j017tn2w0000gn/T/plugin40933-0.sock
osame            36290   0.0  0.1 1621947408  45136   ??  Ss   Mon06PM   0:00.60 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) ~/Developer/github/project/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]__@[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /var/folders/vf/b_h76qmn0wl_q4_5j017tn2w0000gn/T/plugin91087-4.sock
osame            36289   0.0  0.1 1621947920  45280   ??  Ss   Mon06PM   0:00.48 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) ~/Developer/github/project/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]__@[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /var/folders/vf/b_h76qmn0wl_q4_5j017tn2w0000gn/T/plugin91087-3.sock
osame            36288   0.0  0.1 1621945872  45168   ??  Ss   Mon06PM   0:00.60 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) ~/Developer/github/project/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]__@[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /var/folders/vf/b_h76qmn0wl_q4_5j017tn2w0000gn/T/plugin91087-2.sock
osame            36287   0.0  0.1 1621876928  37712   ??  Ss   Mon06PM   0:00.59 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) ~/Developer/github/project/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]__@[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /var/folders/vf/b_h76qmn0wl_q4_5j017tn2w0000gn/T/plugin91087-1.sock
osame            36286   0.0  0.1 1621878976  37712   ??  Ss   Mon06PM   0:00.47 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) ~/Developer/github/project/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]__@[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /var/folders/vf/b_h76qmn0wl_q4_5j017tn2w0000gn/T/plugin91087-0.sock

privatenumber avatar Jun 10 '25 22:06 privatenumber

I killed all processes as a result of ps aux | grep 'nx/src', executed nx reset, removed all node_modules and .nx folders, ran bun install in my case, then tried nx run-many -t build. It thankfully worked.

I was doing a lot of switching of branches, renaming and removing packages—not sure if Nx got hung up on something.

irontitan76 avatar Jul 03 '25 19:07 irontitan76

This bug has persisted across multiple versions and has been encountered by numerous users. Subsequently, your maintenance team classified it as a "high-priority" "BUG"; this classification was not imposed by any external pressure...

However, nearly 5 months after the issue was reported. Even after being designated as high priority, nearly 3 months have passed, and there has been no official response or resolution. This situation is truly disheartening.

This seems to completely contradict your definition of "priority: high" as "High Priority (important issues which affect many people severely)".


The above solution seems to be primarily geared towards local development environments. Unfortunately, I'm experiencing the problem in the GitHub workflow. I'm using Nx 21.2.4

ref: https://github.com/api7/adc/actions/runs/16825672558/job/47661432010?pr=314

Usually I will manually re-run the workflow and sometimes it goes back to normal, other times it has to be repeated multiple times to alleviate the issue.

UPDATE: Even though I have updated to the latest nx 21.3.11, the issue is still present in the CI.

UPDATE: Upgraded to 21.4.1, but the error persists.

bzp2010 avatar Aug 08 '25 08:08 bzp2010

https://github.com/nrwl/nx/issues/30668#issuecomment-2960769086

^ lIfesaver

quirkles avatar Aug 20 '25 15:08 quirkles

I tried nx reset and whatnot but didn't work for me.

What worked was killing all Nx daemon processes:

ps aux | grep 'nx/src' | grep -v grep | awk '{print $2}' | xargs kill A day later, running ps aux shows there are multiple Nx processes running again. According to the docs though, there should only be one process per Nx workspace. And since I'm only working in one Nx workspace, this seems like a bug.

ps aux | grep 'nx/src'

You are an angel

Still happening, and same after eslint...

Lonli-Lokli avatar Oct 20 '25 11:10 Lonli-Lokli

i have noticed that this issue is happening when there's a mix of terminal + nx vscode/webstorm extention running in the background with nx daemon. and they collide. stopping one of them helps. but that issue is pretty annoying as devs are constantly bumping against this issue

AlonMiz avatar Nov 02 '25 09:11 AlonMiz

Still happens to me

AndreyBespamyatnov avatar Nov 17 '25 13:11 AndreyBespamyatnov