Vue.js plugin and vue-class-component issues

Hi,

I cloned the project vue-class-component. There an example folder. I noticed that with typescript service enabled, WebStorm doesn't know that the App is used:

And I don't know why I can't use App as type (the code is built OK):

Is it a bug?

 

Thanks!

0
3 comments

Vue single file components can't be compiled with  TypeScript compiler - it won't load ts modules from <script> section of .vue file. You will see the same error when running tsc in terminal.

So, you have to turn the service off for your project, and rely on WebStorm own error highlighting/completion, and use webpack for building

0
Avatar
Permanently deleted user

When I turn off the service, I can't autocomplete vm.*, like 

vm.$emit()

and webstorm says "unresolved function"

0

Please sign in to leave a comment.