neoclide / coc-tslint-plugin

coc.nvim extension that provides TSLint support using the typescript-tslint-plugin
47 stars 6 forks source link

`typescript-tslint-plugin` cannot be found. #4

Closed hazelweakly closed 5 years ago

hazelweakly commented 5 years ago

When opening a ts file in VSCode, I get the appropriate tslint messages. However, in neovim I don't. I've traced it down in the tsserver debug log to typescript-tslint-plugin not being found. I get an error starting with:

Failed to load module 'typescript-tslint-plugin': Error: Could not resolve JS module

When inspecting the ~/.config/coc/extensions/ folder, I noticed that coc-tslint-plugin does not have a node_modules folder. It appears that typescript-tslint-plugin should be in the dependencies, not the devDependencies of the package.json.

A simple npm install typescript-tslint-plugin in the coc-tslint-plugin folder seems to make everything work correctly again.