-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
coc-tsserver not recognizing @types/node #474
Comments
Try |
I replaced |
Check the QA in README https://github.com/neoclide/coc-tsserver?tab=readme-ov-file#q--a You need to setup jsconfig.json to make tsserver understand your code. |
I created a jsconfig.json on my project root with |
I ran When I was trying to figure out why it was working in termux but not in MSYS, I noticed that the TSC version in my termux was 5.5.4. |
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?
I also noticed that
:CocConfig
is not auto-completing some tsserver configuration options like "tsserver.log"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
andnpm 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.
The text was updated successfully, but these errors were encountered: