vue-for-idea
vue-for-idea copied to clipboard
v-if is not allowed here?
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.
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?
@eugenevdm I'm afraid that we have to be patient and wait until end of March for official Vue support in Webstorm.
You can turn off XML inspections in Settings > Editor > Inspections > uncheck "Unbound XML namespace prefix"
@piotros its' april now, is this possibly fixable?