lewyuburi / nuxt-validate

Simple Nuxt input validation module using vee-validate
https://www.npmjs.com/package/nuxt-validate
MIT License
122 stars 19 forks source link

handleSubmit is not a function (using ValidationObserver) #25

Open jamesofficer opened 4 years ago

jamesofficer commented 4 years ago

I've set up my form in a similar manner to this: https://logaretm.github.io/vee-validate/guide/forms.html#validate-before-submit

However when I use the ValidationObserver the invalid and handleSubmit slots don't seem to work? When I submit the form wrapped in the handleSubmit method I get handleSubmit is not a function. Also my button is not disabled by default with the invalid slot.

Everything else seems fine so I'm not sure if I'm missing something. Any help would be great, thanks!

simplenotezy commented 4 years ago

I get the same error, with the "handleSubmit" error. I have opened an issue here: https://github.com/logaretm/vee-validate/issues/2662

nlxdodge commented 4 years ago

Yeah so that was only available from version 3.2 according to the link above. So this project is out of date, as it uses version 3.0.8.

chapdel commented 3 years ago

Actualy, nuxt-validate use vee-validate v2 check with npm list