tsuquyomi icon indicating copy to clipboard operation
tsuquyomi copied to clipboard

It doesn't work when typescript is in node_modules

Open nvlled opened this issue 6 years ago • 1 comments

It doesn't work, e.g. the server doesn't start, when typescript is installed locally in the project. Removing typescript from the project's node_modules seems to fix this, although I am not sure exactly what the underlying cause is.

nvlled avatar Aug 07 '18 04:08 nvlled

I'm not a contributor to this project, but Tsuquyomi works for me with a local installation of typescript.

First I checked (in vim) which command was used to run tsserver

:echo tsuquyomi#config#tsscmd()
node ".../node_modules/typescript/bin/tsserver"

Then, I ran that command in my shell I am able to verify that tsserver starts without error

$ node ".../node_modules/typescript/bin/tsserver"
Content-Length: 76

{"seq":0,"type":"event","event":"typingsInstallerPid","body":{"pid":25079}}

Trying these commands may shed light on your issue, or at least help others to help you

terite avatar Aug 13 '18 02:08 terite