Skip to content

coc-tsserver not recognizing @types/node #474

@gatoasmatico

Description

@gatoasmatico

I'm on windows, using vim through MSYS2, and i'm trying to use coc-tsserver to work on a Nodejs project, but the extension isn't recognizing node built-in modules, not even the global variables like Buffer. Is this a problem from MSYS or the extension?
image

I also noticed that :CocConfig is not auto-completing some tsserver configuration options like "tsserver.log"
image

I also use this extension on my Android through termux and it works perfectly.
Node and NPM have been installed from nodejs.org and can be accessed by MSYS via "MSYS2_PATH_TYPE=inherit" in msys2.ini.
I've already run both npm install typescript @types/node and npm install --global typescript @types/node.
I can provide tsserver.log, but I don't think I should just paste the text here because it has many lines, so if anyone wants me to send the tsserver.log, please tell me the best way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions