Closed dvlpr91 closed 3 years ago
The output shows “Error: Cannot find module 'typescript'”. npm install typescript
from ~/.config/coc/extensions/node_modules/coc-svelte
fixed the issue.
The output shows “Error: Cannot find module 'typescript'”.
npm install typescript
from~/.config/coc/extensions/node_modules/coc-svelte
fixed the issue.
So it works
Hope it will be fixed soon.
Thanks!
Maybe it makes sense to keep this open as it is not actually fixed in the code?
Yes, this is still very much an issue. To get around it for now, build this coc extension using a Vim package/plugin manager instead of installing it with CocInstall
. If using vim-packager:
call packager#add('git@github.com:coc-extensions/coc-svelte.git', {'do': 'yarn install --frozen-lockfile && yarn build'})
The above works because typescript
is a devDependency, which only gets installed if you build this project from source. Installing it from npm doesn't install the development dependencies.
Yes, this is still very much an issue. To get around it for now, build this coc extension using a Vim package/plugin manager instead of installing it with
CocInstall
. If using vim-packager:call packager#add('git@github.com:coc-extensions/coc-svelte.git', {'do': 'yarn install --frozen-lockfile && yarn build'})
The above works because
typescript
is a devDependency, which only gets installed if you build this project from source. Installing it from npm doesn't install the development dependencies.
Nothing different with :CocInstall
but more ram utilization(?) and failed to load too....
In compare to the VSCode version its take too long to load the project(and then fail...) I love the (Neo)Vim a lot, take care of it plz...
Yes, this is still very much an issue. To get around it for now, build this coc extension using a Vim package/plugin manager instead of installing it with
CocInstall
. If using vim-packager:call packager#add('git@github.com:coc-extensions/coc-svelte.git', {'do': 'yarn install --frozen-lockfile && yarn build'})
The above works because
typescript
is a devDependency, which only gets installed if you build this project from source. Installing it from npm doesn't install the development dependencies.Nothing different with
:CocInstall
but more ram utilization(?) and failed to load too....In compare to the VSCode version its take too long to load the project(and then fail...) I love the (Neo)Vim a lot, take care of it plz...
TAKE CARE OF YOUR tsconfig
OF YOU PROJECT THIS MIGHT BE THE LITTLE EVIL
Hi.
After installation, features such as auto-completion do not work.