TypeScript-Vue-Example icon indicating copy to clipboard operation
TypeScript-Vue-Example copied to clipboard

ts error in vscode

Open wesleymostien opened this issue 7 years ago • 0 comments

screen shot 2017-10-12 at 16 57 31

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.

wesleymostien avatar Oct 12 '17 15:10 wesleymostien