vue-for-idea icon indicating copy to clipboard operation
vue-for-idea copied to clipboard

v-if is not allowed here?

Open amcsi opened this issue 9 years ago • 4 comments

I get "Attribute v-if is not allowed here" is I use v-if on any element. It seems like PHPStorm knows quite a few v-* attributes, but not v-if. Neither does it recognize v-else, and there are several other things missing too like v-bind and v-on, although for those last two I'd use the shorthand versions instead anyway.

amcsi avatar May 21 '16 22:05 amcsi

Is vue-for-idea still current for Vue 2.x? Reason is I get lots of red errors in the sidebar, e.g.

Namespace 'v-on' is not bound less... (Ctrl+F1) This inspection checks for unbound namespace prefixes in XML

Some tips on how to troubleshoot?

eugenefvdm avatar Feb 24 '17 12:02 eugenefvdm

@eugenevdm I'm afraid that we have to be patient and wait until end of March for official Vue support in Webstorm.

piotros avatar Feb 24 '17 13:02 piotros

You can turn off XML inspections in Settings > Editor > Inspections > uncheck "Unbound XML namespace prefix"

capture d ecran 2017-09-08 16 10 43

lipsumar avatar Sep 08 '17 14:09 lipsumar

@piotros its' april now, is this possibly fixable?

acidjazz avatar Apr 06 '18 23:04 acidjazz