Open deguich opened 4 years ago
No intellisense in .vue files for vuejs plugins like vue-router.
In a testisense directory
yarn init -y yarn add vue vue-router
File src/App.vue :
<script> export default { methods: { test() { } } } </script>
Add this tsconfig.json file at project root :
{ "include": [ "./node_modules/vue-router/types/index.d.ts" ] }
Need restarting VSCode.
We could likely fix this by appending vue-router into include if found in package.json.
include
Info
Problem
No intellisense in .vue files for vuejs plugins like vue-router.
Reproductible Case
Tests projects
from scratch (tested with vue-cli project too)
In a testisense directory
File src/App.vue :
No intellisense for vuejs plugin.
Working test
Add this tsconfig.json file at project root :
Need restarting VSCode.