Vee-validate: [Vue warn]: The computed property "errors" is already defined as a prop.

Created on 10 Jun 2017  ยท  8Comments  ยท  Source: logaretm/vee-validate

Versions:

  • VueJs: 2.3.4
  • Vee-Validate: 2.0.0.-rc.5

Description:

Im using vee-validate together with vuetify.js' <v-text-field></v-text-fied> and I'm getting this [Vue ward] error.

[Vue warn]: The computed property "errors" is already defined as a prop.

Steps To Reproduce:

duplicate โ” question

Most helpful comment

Vuetify includes errors property on its input components, you should rename vee-validate's errorBag name to something else.

http://vee-validate.logaretm.com/#configuration

Vue.use(VeeValidate, {
  errorBagName: 'vErrors'
});

All 8 comments

Vuetify includes errors property on its input components, you should rename vee-validate's errorBag name to something else.

http://vee-validate.logaretm.com/#configuration

Vue.use(VeeValidate, {
  errorBagName: 'vErrors'
});

@logaretm neat. Thanks :) :100:

The issue pop up with vue-form-generator. The fix from @logaretm works just fine. But I am having issue with

<fieldset></fieldset>

the content does not show

@EmmaAkin Do you mind adding your snippet? there is not much I can do.

There is a conflict with the veevalidate plugin (library). I remove the veevalidate from my code and everything worked fine.

@EmmaAkin Fixed this with disabling automatic injection exact in that component, where you are using vue-form-generator component
http://vee-validate.logaretm.com/advanced.html#inject

@VRuzhentsov I would try to revert to that commit and see if that would fix the error.

Thanks @logaretm worked for me!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

saintplay picture saintplay  ยท  3Comments

Shchepotin picture Shchepotin  ยท  3Comments

yyyuuu777 picture yyyuuu777  ยท  3Comments

parweb picture parweb  ยท  3Comments

DanielPe05 picture DanielPe05  ยท  3Comments