Skip to content
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

Trouble using the Nx VSCode extension #2043

Closed
1 of 4 tasks
rgolea opened this issue Feb 27, 2024 · 3 comments
Closed
1 of 4 tasks

Trouble using the Nx VSCode extension #2043

rgolea opened this issue Feb 27, 2024 · 3 comments
Labels
type: bug Something isn't working

Comments

@rgolea
Copy link

rgolea commented Feb 27, 2024

Current Behavior

Currently, it stays loading and it doesn't finish loading all the configs.
I believe the problem is node version 18.19.0. However, we can't currently update to a newer version in the project.

Expected Behavior

It should display on the right all the available commands

GitHub Repo

No response

Steps to Reproduce

  1. Use node version 18.19.0 with yarn version 3.6.4
  2. Install dependencies
  3. Wait for everything to load

Nx Report

Node   : 20.11.1
OS     : darwin-arm64
yarn   : 3.6.4

nx                 : 18.0.5
@nx/js             : 18.0.5
@nx/jest           : 18.0.5
@nx/linter         : 18.0.5
@nx/eslint         : 18.0.5
@nx/workspace      : 18.0.5
@nx/cypress        : 18.0.5
@nx/devkit         : 18.0.5
@nx/eslint-plugin  : 18.0.5
@nx/next           : 18.0.5
@nx/react          : 18.0.5
@nx/storybook      : 18.0.5
@nrwl/tao          : 18.0.5
@nx/vite           : 18.0.5
@nx/web            : 18.0.5
@nx/webpack        : 18.0.5
typescript         : 5.3.3

Failure Logs

[Nxls] - 2024-02-27T14:26:52.514Z - Retrieving workspace configuration

[Nxls] - 2024-02-27T14:26:52.514Z - Major version is less than 12

[Nxls] - 2024-02-27T14:27:39.278Z - Retrieving workspace configuration

[Nxls] - 2024-02-27T14:27:39.323Z - Using local Nx package at /<user>/<path_to_project>/node_modules/nx/src/project-graph/file-utils.js

[Nxls] - 2024-02-27T14:27:39.323Z - Using local Nx package at /<user>/<path_to_project>/node_modules/nx/src/project-graph/project-graph.js

[Nxls] - 2024-02-27T14:27:39.323Z - Using local Nx package at /<user>/<path_to_project>/node_modules/nx/src/utils/output.js

[Nxls] - 2024-02-27T14:27:39.323Z - Using local Nx package at /<user>/<path_to_project>/node_modules/nx/src/project-graph/file-map-utils.js

[Nxls] - 2024-02-27T14:27:39.323Z - Using local Nx package at /<user>/<path_to_project>/node_modules/nx/src/daemon/client/client.js

[Nxls] - 2024-02-27T14:27:39.323Z - createProjectGraphAndSourceMapsAsync


 NX   Nx Daemon was not able to compute the project graph.

Log file with the error: /<user>/<path_to_project>/.nx/cache/d/daemon-error.log
Please file an issue at https://github.com/nrwl/nx
Nx Daemon is going to be disabled until you run "nx reset".

[Nxls] - 2024-02-27T14:28:45.300Z - Unable to get project graph

[Nxls] - 2024-02-27T14:28:45.300Z - Error: Cannot find module '@nx/nx-darwin-arm64'
Require stack:
- /<user>/<path_to_project>/node_modules/nx/src/native/index.js
- /<user>/<path_to_project>/node_modules/nx/src/command-line/run/run.js
- /<user>/<path_to_project>/node_modules/nx/src/devkit-exports.js
- /<user>/<path_to_project>/node_modules/@nx/devkit/index.js
- /<user>/<path_to_project>/node_modules/@nx/next/src/plugins/plugin.js
- /<user>/<path_to_project>/node_modules/@nx/next/plugin.js
- /<user>/<path_to_project>/node_modules/nx/src/utils/nx-plugin.js
- /<user>/<path_to_project>/node_modules/nx/src/project-graph/build-project-graph.js
- /<user>/<path_to_project>/node_modules/nx/src/project-graph/project-graph.js
- /<user>/<path_to_project>/node_modules/nx/src/project-graph/file-utils.js
- /<user>/.vscode/extensions/nrwl.angular-console-18.16.0/nxls/main.js
    at Function._resolveFilename (node:internal/modules/cjs/loader:1131:15)
    at node:internal/modules/cjs/loader:976:27
    at Function._load (node:electron/js2c/asar_bundle:2:13327)
    at Module.require (node:internal/modules/cjs/loader:1197:19)
    at require (node:internal/modules/cjs/helpers:121:18)
    at Object.<anonymous> (/<user>/<path_to_project>/node_modules/nx/src/native/index.js:135:29)
    at Module._compile (node:internal/modules/cjs/loader:1318:14)
    at Object..js (node:internal/modules/cjs/loader:1373:10)
    at Module.load (node:internal/modules/cjs/loader:1173:32)
    at node:internal/modules/cjs/loader:1014:12

[Nxls] - 2024-02-27T14:28:45.300Z - Resetting daemon client

[Nxls] - 2024-02-27T14:28:45.300Z - Retrieved workspace configuration in: 66022.08900000155 ms

[Nxls] - 2024-02-27T14:28:45.435Z - reconfiguration failed, trying again in 1 seconds

[Nxls] - 2024-02-27T14:28:45.436Z - Using local Nx package at /<user>/<path_to_project>/node_modules/nx/src/utils/cache-directory.js

[Nxls] - 2024-02-27T14:28:45.748Z - Generating graph with command: `yarn --silent nx graph  --file ./.nx/cache/nx-console-project-graph/project-graph.html`

[Nxls] - 2024-02-27T14:28:46.074Z - Error creating project graph: Unable to create project graph: Error: Command failed: yarn --silent nx graph  --file ./.nx/cache/nx-console-project-graph/project-graph.html

[Nxls] - 2024-02-27T14:28:46.437Z - Retrieving workspace configuration

[Nxls] - 2024-02-27T14:28:46.437Z - Using local Nx package at /<user>/<path_to_project>/node_modules/nx/src/project-graph/file-utils.js

[Nxls] - 2024-02-27T14:28:46.437Z - Using local Nx package at /<user>/<path_to_project>/node_modules/nx/src/project-graph/project-graph.js

[Nxls] - 2024-02-27T14:28:46.438Z - Using local Nx package at /<user>/<path_to_project>/node_modules/nx/src/utils/output.js

[Nxls] - 2024-02-27T14:28:46.438Z - Using local Nx package at /<user>/<path_to_project>/node_modules/nx/src/project-graph/file-map-utils.js

[Nxls] - 2024-02-27T14:28:46.438Z - Using local Nx package at /<user>/<path_to_project>/node_modules/nx/src/daemon/client/client.js

[Nxls] - 2024-02-27T14:28:46.438Z - createProjectGraphAndSourceMapsAsync

[Nxls] - 2024-02-27T14:28:46.440Z - Unable to get project graph

[Nxls] - 2024-02-27T14:28:46.440Z - Error: Cannot find module '@nx/nx-darwin-arm64'
Require stack:
- /<user>/<path_to_project>/node_modules/nx/src/native/index.js
- /<user>/<path_to_project>/node_modules/nx/src/command-line/run/run.js
- /<user>/<path_to_project>/node_modules/nx/src/devkit-exports.js
- /<user>/<path_to_project>/node_modules/@nx/devkit/index.js
- /<user>/<path_to_project>/node_modules/@nx/next/src/plugins/plugin.js
- /<user>/<path_to_project>/node_modules/@nx/next/plugin.js
- /<user>/<path_to_project>/node_modules/nx/src/utils/nx-plugin.js
- /<user>/<path_to_project>/node_modules/nx/src/project-graph/build-project-graph.js
- /<user>/<path_to_project>/node_modules/nx/src/project-graph/project-graph.js
- /<user>/<path_to_project>/node_modules/nx/src/project-graph/file-utils.js
- /<user>/.vscode/extensions/nrwl.angular-console-18.16.0/nxls/main.js
    at Function._resolveFilename (node:internal/modules/cjs/loader:1131:15)
    at node:internal/modules/cjs/loader:976:27
    at Function._load (node:electron/js2c/asar_bundle:2:13327)
    at Module.require (node:internal/modules/cjs/loader:1197:19)
    at require (node:internal/modules/cjs/helpers:121:18)
    at Object.<anonymous> (/<user>/<path_to_project>/node_modules/nx/src/native/index.js:135:29)
    at Module._compile (node:internal/modules/cjs/loader:1318:14)
    at Object..js (node:internal/modules/cjs/loader:1373:10)
    at Module.load (node:internal/modules/cjs/loader:1173:32)
    at node:internal/modules/cjs/loader:1014:12

[Nxls] - 2024-02-27T14:28:46.440Z - Resetting daemon client

[Nxls] - 2024-02-27T14:28:46.440Z - Retrieved workspace configuration in: 2.79908400028944 ms

[Nxls] - 2024-02-27T14:28:46.492Z - reconfiguration failed, trying again in 4 seconds

[Nxls] - 2024-02-27T14:28:46.493Z - Using local Nx package at /<user>/<path_to_project>/node_modules/nx/src/utils/cache-directory.js

[Nxls] - 2024-02-27T14:28:46.820Z - Generating graph with command: `yarn --silent nx graph  --file ./.nx/cache/nx-console-project-graph/project-graph.html`

[Nxls] - 2024-02-27T14:28:47.146Z - Error creating project graph: Unable to create project graph: Error: Command failed: yarn --silent nx graph  --file ./.nx/cache/nx-console-project-graph/project-graph.html

Package Manager Version

No response

Operating System

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

Additional Information

No response

@rgolea rgolea added the type: bug Something isn't working label Feb 27, 2024
@AgentEnder AgentEnder transferred this issue from nrwl/nx Mar 4, 2024
@MaxKless
Copy link
Collaborator

MaxKless commented Mar 5, 2024

Check out this issue for some troubleshooting tips: #1894

Can you double-check your node version and reinstall it for apple silicon?

@rgolea
Copy link
Author

rgolea commented Mar 6, 2024

Thank you! I didn't realise that I installed node on the x86 architecture. Thank you!

@rgolea rgolea closed this as completed Mar 6, 2024
@MaxKless
Copy link
Collaborator

MaxKless commented Mar 6, 2024

That's good to hear, glad I could help :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants