typescript-language-server / typescript-language-server

TypeScript & JavaScript Language Server

Home Page:https://www.npmjs.com/package/typescript-language-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SyntaxError when running typescript-language-server --stdio

dneial opened this issue · comments

i get a SyntaxError: Unexpected token '.' when running the server manually

What exactly are you doing. How have you installed it and what command are you using to start it. And what's the full error? Provide more details.

Sorry, I did a little bit of research and this was a node version problem. Node version should be at least 14 and I had v12

Note that for the latest version that was released few days ago you'll need node 18 at least.