Skip to content

NX VSCode extension (NX Console) - "Add Dependency" is broken + Cannot view project graph in NX Console #2886

@paustint

Description

@paustint

Current Behavior

In vscode, when I click "Add Dependency", there is the following error:

Unable to connect to https://raw.githubusercontent.com/nrwl/nx/master/docs/packages.json. Error: Unexpected token 'm', "m����" is not valid JSON

Image

EDIT: In addition, I am unable to view the project graph. The tab opens in VSCode but is blank.
The console shows Failed to get latest nx version: [object Object]
and then clicking graph again shows:
unable to send telemetry: Unable to connect to https://www.google-analytics.com/mp/collect?api_secret=3J_QsvygSLKfjxMXFSG03Q&measurement_id=G-TNJ97NGX40. Error: Unexpected token 'm', "m����" is not valid JSON

Expected Behavior

Clicking on the "Add Dependency" works as expected

GitHub Repo

No response

Steps to Reproduce

  1. Install vscode
  2. Install NX extension
  3. Click the nx extension
  4. Click "Common NX Commands"
  5. Sceoll down and click "Add Dependency"

Nx Report

Identifier nrwl.angular-console
Version 18.77.0
Last Updated 1 hour ago

Node           : 22.20.0
OS             : darwin-arm64
Native Target  : aarch64-macos
npm            : 10.9.3

nx                     : 21.6.5
@nx/js                 : 21.6.5
@nx/jest               : 21.6.5
@nx/eslint             : 21.6.5
@nx/workspace          : 21.6.5
@nx/devkit             : 21.6.5
@nx/esbuild            : 21.6.5
@nx/eslint-plugin      : 21.6.5
@nx/express            : 21.6.5
@nx/module-federation  : 21.6.5
@nx/next               : 21.6.5
@nx/node               : 21.6.5
@nx/playwright         : 21.6.5
@nx/plugin             : 21.6.5
@nx/react              : 21.6.5
@nx/rollup             : 21.6.5
@nx/vite               : 21.6.5
@nx/web                : 21.6.5
@nx/webpack            : 21.6.5
@nx/docker             : 21.6.5
typescript             : 5.9.3
---------------------------------------
Registered Plugins:
@nx/js/typescript
@nx/eslint/plugin
@nx/docker
---------------------------------------
Cache Usage: 0.00 B / 92.64 GB

Failure Logs

Unable to connect to https://raw.githubusercontent.com/nrwl/nx/master/docs/packages.json. Error: Unexpected token 'm', "m����" is not valid JSON

Package Manager Version

No response

Operating System

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

Additional Information

No response

Metadata

Metadata

Assignees

Labels

type: bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions