5 ms·
Does Vue 3 allow type checking templates? That's by far the biggest issue with Vue 2 and I would strongly recommend anyone to use React instead just for that re
by IshKebab 6y ago
Does Vue 3 allow type checking templates? That's by far the biggest issue with Vue 2 and I would strongly recommend anyone to use React instead just for that reason (though there are others too).
- adevx 6y agoThis is supported at IDE level even in Vue 2 with Vetur (vscode), but has performance issues.
- IshKebab 6y agoReally? I use Vue 2 with Vetur in VSCode and it does not type check templates.
- adevx 6y agoYou need "vetur.experimental.templateInterpolationService" set to true in settings.json, have a look here: https://vuejs.github.io/vetur/interpolation.html#generic-language-features https://vuejs.github.io/vetur/interpolation.html#generic-lan...
- shrew 6y agoYes, Evan You has previously mentioned that Vetur (Vue tooling for VS Code) will have type checking in templates for Vue 3, helped in part by the Composition API making it easier to follow the typings available to the template. Vue 3 seems to have taken a lot of cues from React during its rewrite, give it a second look if you weren't keen on 2.