Open lisandromdc opened 1 year ago
it works for me
index.vue Doctor ❗ @vue/language-plugin-pug missing For , the @vue/language-plugin-pug plugin is required. Install it using $ npm install -D @vue/language-plugin-pug and add it to vueCompilerOptions.plugins to support TypeScript intellisense in Pug templates.
package.json
{
"devDependencies": {
"@vue/language-plugin-pug": "latest"
}
}
tsconfig.json / jsconfig.json
{
"vueCompilerOptions": {
"plugins": [
"@vue/language-plugin-pug"
]
}
}
I'm an old fan of pug! Currently I'm working on a Vue.js really huge proyect where the type-check of Typescript is crucial to avoid break anything on any update.
No mather whatever I do, typescript is not finding any error on the "template" (pug) part of the .vue file. It just check the "script" part. This is absolutely important for me, because prevents lots of errors when usingi not defined keys for some variables or things like that