TypeScript-Vue-Example
TypeScript-Vue-Example copied to clipboard
ts error in vscode
I use Visual Studio Code and I get an error in file App.vue.
I can run the server without problems ("npm run dev") but it's just annoying to have this error in the IDE.
I could fix this (as found solution on the web) by using an extra d.ts file :
declare module '*.vue' { import Vue = require('vue'); const value: Vue.ComponentOptions<Vue>; export default value; }
but what happens then is, you never get an error in the IDE, even if the .vue file doesn't exist.