nx-console: Nx Console unable to start in VS Code

Current Behavior

I cannot start the NX console and therefore not connect it to my workspace and use any of the functionality. There are a few errors displayed as notification and the output has issues as well.

This is probably a duplicate of https://github.com/nrwl/nx-console/issues/1891. But that one seemed stale.

Expected Behavior

I would expect the console to bring this dependecy with me, or tell me how to solve it.

Steps to Reproduce

I am not sure. It seems to be connected to the fact that the environment which I work in is running behind a firewall which blocks most of the internet traffic. I can install npm packages directly.

The console was installed through VSIX.

I think it would be reproducible, on a pristine system without internet and a new VS code installation. Then try to install the console through VSIX.

The solution is probably to manually install the watcher dependency on the system. But I would not know how this needs to be done, so Nx Console finds it.

Failure Logs / Images / Videos

NX Console VS Code errors

This output is printed several times

c:\Users\user\.vscode\extensions\nrwl.angular-console-18.10.1\node_modules\@parcel\watcher\index.js:25
      throw new Error(`No prebuild or local build of @parcel/watcher found. Tried ${name}. Please ensure it is installed (don't use --no-optional when installing with npm). Otherwise it is possible we don't support your platform yet. If this is the case, please report an issue to https://github.com/parcel-bundler/watcher.`);
      ^

Error: No prebuild or local build of @parcel/watcher found. Tried @parcel/watcher-win32-x64. Please ensure it is installed (don't use --no-optional when installing with npm). Otherwise it is possible we don't support your platform yet. If this is the case, please report an issue to https://github.com/parcel-bundler/watcher.
    at Object.<anonymous> (c:\Users\p21443\.vscode\extensions\nrwl.angular-console-18.10.1\node_modules\@parcel\watcher\index.js:25:13)
    at Module._compile (node:internal/modules/cjs/loader:1316:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1371:10)
    at Module.load (node:internal/modules/cjs/loader:1171:32)
    at Module._load (node:internal/modules/cjs/loader:1012:12)
    at f._load (node:electron/js2c/asar_bundle:2:13377)
    at Module.require (node:internal/modules/cjs/loader:1195:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at Object.<anonymous> (c:\Users\p21443\.vscode\extensions\nrwl.angular-console-18.10.1\nxls\main.js:776:26973)
    at Module._compile (node:internal/modules/cjs/loader:1316:14)

Node.js v18.15.0
[Info  - 7:51:33 AM] Connection to server got closed. Server will restart.
[Error - 7:51:33 AM] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 7:51:33 AM] Nx Console Client client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 7:51:33 AM] Sending request nx/workspace failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
c:\Users\p21443\.vscode\extensions\nrwl.angular-console-18.10.1\node_modules\@parcel\watcher\index.js:25
      throw new Error(`No prebuild or local build of @parcel/watcher found. Tried ${name}. Please ensure it is installed (don't use --no-optional when installing with npm). Otherwise it is possible we don't support your platform yet. If this is the case, please report an issue to https://github.com/parcel-bundler/watcher.`);
      ^

Environment

 >  NX   Report complete - copy this into the issue template

   Node   : 18.12.1
   OS     : win32-x64
   npm    : 8.19.2
   
   nx (global)        : 17.1.2
   nx                 : 17.1.2
   @nx/js             : 17.1.2
   @nx/jest           : 17.1.2
   @nx/linter         : 17.1.2
   @nx/eslint         : 17.1.2
   @nx/workspace      : 17.1.2
   @nx/angular        : 17.1.2
   @nx/cypress        : 17.1.2
   @nx/devkit         : 17.1.2
   @nx/eslint-plugin  : 17.1.2
   @nx/plugin         : 17.1.2
   @nrwl/tao          : 17.1.2
   @nx/web            : 17.1.2
   @nx/webpack        : 17.1.2
   typescript         : 5.2.2
   ---------------------------------------
   Community plugins:
   @ngneat/transloco        : 5.0.7
   @ngrx/effects            : 17.0.1
   @ngrx/eslint-plugin      : 17.0.1
   @ngrx/router-store       : 17.0.1
   @ngrx/signals            : 17.0.1
   @ngrx/store              : 17.0.1
   @ngrx/store-devtools     : 17.0.1
   angular-auth-oidc-client : 16.0.1
   ---------------------------------------
   Local workspace plugins:
         @my-org/docker
  • Nx Console version: 18.10.1
  • VSCode version: 1.83.0
  • Windows 10 x64 22H2 (19045.3570) running in a citrix virtualization environment

About this issue

  • Original URL
  • State: open
  • Created 7 months ago
  • Comments: 16

Most upvoted comments

Hey! Sorry people are on vacation here already so the next release will be first week of Jan πŸ˜ƒ Until then, building from source is the way to go

@MaxKless Thanks for the heads up! Using the writeup I successfully solved this issue. πŸ˜ƒ

@clemenscodes check out this writeup that might fix your NixOs issue: https://github.com/nrwl/nx-console/discussions/2051

@mrvonwyl are you sure you have the right VSCode installed for your windows version? As in x64 vs x32. It’s a common mistake that often causes issues like this.

Update: The issue persists with v18.12.0.

Hi @MaxKless. I see that a new Version 18.11.1 was released. Well done! However, I experience the same issue as with the version I built myself before the holidays.

The workspace is not detected. There is no Output available for the nx console. And a refresh throws an error message. There is also nothing in the Developer Tools.

Annotation 2024-01-08 083937 Annotation 2024-01-08 084032 Annotation 2024-01-08 084141