-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
The path /.../tsserver.js doesn't point to a valid tsserver install. Falling back to bundled TypeScript version. #22606
Comments
I've tried to configure vtsls to use a local typecript install, but does not change anything (still points to the non-existing local tsserver.ts);
(on my computer, |
I had more luck using "settings" to configure vtsls, and the lib folder of my global typescript install.
Still, the original warning should not happen (right ?). |
could relate to #18410 |
Maybe add a setting to tell Zed to use the internal TSServer by default. |
Using a mono-repo, Zed automatically takes the |
found a solution |
I also ran into the same issue. However, after configuring zed as shown below, the warning went away. "lsp": {
"vtsls": {
"settings": {
"typescript": {
"tsdk": "~/.nvm/versions/node/v21.7.3/lib/node_modules/typescript/lib"
}
}
}
} |
Just to add a bit of info: it started showing
error right after I have installed and configured |
Guys, please stop this. The problem is not related to your package installation or the use of a different package manager. Those factors are irrelevant. The "solution" of defining the TS lib path in the settings is also incorrect. This approach hardcodes a predefined path, which will be applied to all projects opened in Zed globally. This is problematic because you may work on different projects with different versions of TypeScript, making this solution unsuitable. As you can understand, this approach is flawed. Since this bug appeared in version v0.167.x, and there were no release notes regarding changes to how vtsls works, it’s evident that this is simply a bug that will likely be fixed soon. Zed should automatically load the appropriate TS lib based on the project where it’s installed. P.S.: Since this issue still has the |
Check for existing issues
Describe the bug / provide steps to reproduce it
Fresh install, opening any project without Typescript.
When opening a project in zed, this warning pops up;
Zed Version and System Specs
Zed: v0.167.1 (Zed)
OS: macOS 14.3.1
Memory: 64 GiB
Architecture: aarch64
If applicable, attach your Zed.log file to this issue.
Zed.log
The text was updated successfully, but these errors were encountered: