Webstorm vue plugin

I am trying to use .vue single file component with typescript (https://github.com/vuejs/vue-class-component) in webstorm (2016.3.1). I use this plugin https://plugins.jetbrains.com/webStorm/plugin/8057-vue-js. So I have this error message:

I've tried different js versions in webstorm like es6, reactJsx, flow but error is still here. Did I miss something?

And similar question on vue forum: https://forum.vuejs.org/t/webstorm-vue-plugin/5419

0
4 comments

is it a TypeScript code embedded in <script> tag? Not currently supported; will likely be available in 2017.1. For now the only workaround is setting JavaScript Language version to 'Flow' - errors about types will go away then. But you will still face issue when using Typescript-specific constructions like

import Vue = require('vue')
0
Avatar
Permanently deleted user

Thanks for your answer. I've set JavaScript Language version to 'Flow' but error about types is still exists.

0

can't recreate;

 

please try invalidating caches (File | Invalidate caches, restart) - does the problem persist?

0
Avatar
Permanently deleted user

It is ok now. Thanks!

0

Please sign in to leave a comment.