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

Language server error: eslint, Error: Cannot find module 'vscode-languageserver/node' #24194

Open
Angelk90 opened this issue Feb 4, 2025 · 1 comment
Labels
awaiting info Issue that needs more information from the user

Comments

@Angelk90
Copy link
Contributor

Angelk90 commented Feb 4, 2025

Summary

When I open a js project, I get this error, but it only happens on Zed.

Language server error: eslint

oneshot canceled
-- stderr--
node:internal/modules/cjs/loader:1080
  throw err;
  ^

Error: Cannot find module 'vscode-languageserver/node'
Require stack:
- /Users/USERNAME/Library/Application Support/Zed/languages/eslint/vscode-eslint-2.4.4/vscode-eslint/server/out/eslintServer.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
    at Module._load (node:internal/modules/cjs/loader:922:27)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at require (node:internal/modules/cjs/helpers:121:18)
    at Object.<anonymous> (/Users/USERNAME/Library/Application Support/Zed/languages/eslint/vscode-eslint-2.4.4/vscode-eslint/server/out/eslintServer.js:9:16)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/USERNAME/Library/Application Support/Zed/languages/eslint/vscode-eslint-2.4.4/vscode-eslint/server/out/eslintServer.js'
  ]
}

Node.js v18.17.1

Zed Version and System Specs

Zed: v0.172.8 (Zed Preview)
OS: macOS 14.1.1
Memory: 16 GiB
Architecture: x86_64
@probably-neb
Copy link
Contributor

Hey thanks for reporting this issue. Unfortunately without more information we will be unable to reproduce and fix the error.

Could you please provide the information we asked for in the "steps to reproduce" section in the issue template? Feel free to take a look at #24106 for an example of what this looks like.

We'd love to fix this issue for you but without more information from you we're pretty limited in what we can actually do.

@probably-neb probably-neb added the awaiting info Issue that needs more information from the user label Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting info Issue that needs more information from the user
Projects
None yet
Development

No branches or pull requests

2 participants