Closed airtonix closed 1 year ago
The node version you are using is nodejs 12.22.1. And the typescript language server after v1 requires minimum node version to be 14.
A) upgrade node to v14 B) let LSP handle the node version, by deleting
[
"~/.asdf/shims/node",
"${server_path}",
"--stdio"
]
LSP will prompt you with a modal that has a Install NodeJS
button, click that button and that will install the appropriate NodeJS version.
The node version you are using is nodejs 12.22.1. And the typescript language server after v1 requires minimum node version to be 14.
A) upgrade node to v14 B) let LSP handle the node version, by deleting
[ "~/.asdf/shims/node", "${server_path}", "--stdio" ]
LSP will prompt you with a modal that has a
Install NodeJS
button, click that button and that will install the appropriate NodeJS version.
I don't want LSP to handle the node version, it's super important that typechecking/linting/etc in the editor occur on the same nodejs version that the project uses.
No, it's not really important. It's important that the typescript
is used from the project. Node version doesn't really make a difference. Or at least i can't think of any specific case where it would make a difference for this server.
And if you don't agree (I've just realized who you are) then install the last version of typescript-language-server that worked with node 12 and replace ${server_path}
with a path to it.
LSP will prompt you with a modal that has a Install NodeJS button, click that button and that will install the appropriate NodeJS version.
This worked well for me 💯. I use asdf-vm as well
Troubleshooting: LSP-typescript
Version
Server Test Run
Server Configuration
Active view
Project / Workspace
LSP configuration
System PATH
how do i roll back to a version of lsp-typescript that works with my projects nodejs version?