-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Volar LSP: "Can't find typescript.js or tsserverlibrary.js" #3742
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
Comments
edit: As per doc On The error occurs when typescript is not installed in the project. An installation of This condition was solved in the previous configuration I guess using the typescript package installed with An installation made with |
What do you expect from nvim-lspconfig to resolve this? Are the docs not clear enough? I noticied that a lot of the ts-related configs have these big complex docs: Lines 41 to 49 in 943a055
|
Sorry, you're right, I just wanted to point out the differences between the old For those who may encounter this problem I can expose my solution (maybe something better can be done).
|
Description
After changing the import to fly from
require("lspconfig").volar.setup({})
tovim.lsp.enable("volar")
I get the following error both using
vtsls
and usingts_ls
:After seeing the error when opening the fisrt file everything works correctly (
go-to-definition
,reference
,import component
).Inside the folder
after/lsp
vtsls this content returns:The text was updated successfully, but these errors were encountered: