question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: handleSubmit is not a function

See original GitHub issue

Versions

  • vee-validate: ^3.0.8
  • vue: latest

Describe the bug I get error handleSubmit is not a function

To reproduce Steps to reproduce the behavior:

Assign handleSubmit on a form submit event.

<ValidationObserver v-slot="{ invalid, handleSubmit }">
	<form @submit.prevent="handleSubmit(goToPayment)">

Error: TypeError: handleSubmit is not a function

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
waltergammarotacommented, May 17, 2020

I am having the same issue with vee-validate@3.2.5, any ideas?

3reactions
logaretmcommented, Feb 27, 2020

It was introduced in 3.2 make sure to use that version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React redux-form - error while testing - "TypeError
I've tried to solve it just to make handleSubmit a function and not taking it from props, but then the app doesn't work....
Read more >
Why handleSubmit is not defined? (Example) - Treehouse
My handleSubmit function keeps coming back as undefined. Here's my code: import React, { Component } from 'react'; class Home extends ...
Read more >
[Solved]-react-hook-form: handleSubmit is not a function-Reactjs
Coding example for the question react-hook-form: handleSubmit is not a function-Reactjs.
Read more >
useForm - handleSubmit - React Hook Form
This function will receive the form data if form validation is successful. Props. Name, Type, Description. SubmitHandler, (data: Object, e?: Event) => void ......
Read more >
What's the difference between `handleSubmit` and `onSubmit`?
handleX is what you name the function that you pass to the onX prop. ... redux-form covers handleSubmit functionality by providing a respective...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found