Uncaught TypeError: this.form.pauseValidation is not a function
See original GitHub issueAre you submitting a bug report or a feature request?
Bug report.
When passing onSubmit function to <Form>
component the following error is thrown:
react-final-form.es.js:482 Uncaught TypeError: this.form.pauseValidation is not a function
at ReactFinalForm.componentWillMount (react-final-form.es.js:482)
at callComponentWillMount (react-dom.development.js:6370)
at mountClassInstance (react-dom.development.js:6435)
at updateClassComponent (react-dom.development.js:7840)
at beginWork (react-dom.development.js:8225)
at performUnitOfWork (react-dom.development.js:10224)
at workLoop (react-dom.development.js:10288)
at HTMLUnknownElement.callCallback (react-dom.development.js:542)
at Object.invokeGuardedCallbackDev (react-dom.development.js:581)
at invokeGuardedCallback (react-dom.development.js:438)
at renderRoot (react-dom.development.js:10366)
at performWorkOnRoot (react-dom.development.js:11014)
at performWork (react-dom.development.js:10967)
at requestWork (react-dom.development.js:10878)
at scheduleWorkImpl (react-dom.development.js:10732)
at scheduleWork (react-dom.development.js:10689)
at Object.enqueueSetState (react-dom.development.js:6212)
at LoadableComponent../node_modules/react/cjs/react.development.js.Component.setState (react.development.js:237)
at update (index.js:196)
at index.js:206
at <anonymous>
index.js:2177 The above error occurred in the <ReactFinalForm(3.1.0)(undefined)> component:
in ReactFinalForm(3.1.0)(undefined) (at Form.js:23)
in C (created by withHandlers(C))
in withHandlers(C) (created by Route)
in Route (created by withRouter(withHandlers(C)))
in withRouter(withHandlers(C)) (created by Apollo(withRouter(withHandlers(C))))
in Apollo(withRouter(withHandlers(C))) (created by Apollo(Apollo(withRouter(withHandlers(C)))))
in Apollo(Apollo(withRouter(withHandlers(C)))) (at Scene.js:23)
in div (at Box.js:19)
in Box (at Scene.js:19)
in div (created by Col)
in Col (at Scene.js:18)
in div (created by Row)
in Row (at Scene.js:12)
in div (created by Basic)
in Basic (created by Adapter)
in Adapter (at Layout.js:6)
in div (created by BasicLayout)
in BasicLayout (created by Adapter)
in Adapter (at Layout.js:5)
in L (at Scene.js:11)
in Scene (created by LoadableComponent)
in LoadableComponent (at GuestRoute.js:17)
in Route (at GuestRoute.js:13)
in GuestRoute (created by Apollo(GuestRoute))
in Apollo(GuestRoute) (at App.js:31)
in Switch (at App.js:27)
in Router (at App.js:26)
in SocketProvider (created by Apollo(SocketProvider))
in Apollo(SocketProvider) (at App.js:25)
in QueryRecyclerProvider (created by ApolloProvider)
in ApolloProvider (at App.js:24)
in App (at index.js:6)
What’s your environment?
After upgrade to 3.1.0 I’m experiencing this issue.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
validator is not a function error - react final form field arrays
When I try to use it, I get a "validator is not a function error ". I traced it down to the runFieldLevelValidation...
Read more >Final Form Docs – `FormApi`
Returns the state of a specific field, of type FieldState , as it was last ... needed while validation is paused, you can...
Read more >reportValidity() Sample
This sample illustrates the use of reportValidity() , which provides a way to trigger <form> validation logic. If any of a <form> 's...
Read more >Force revalidation on submit (React Final Form) - CodeSandbox
Force revalidation on submit (React Final Form) by CodeWithOz using final-form, final-form-submit-listener, moment, prettier, react, react-dom, ...
Read more >React Form Validation with Formik and Yup | by Chris - Medium
When you wrap your form in a Formik component, the child is a function and not a component. This function takes one argument...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yeah, this is my fault. Something changed between the libraries and the deps didn’t get updated properly. Nothing really to be fixed on my end, though. You should upgrade. Apologies…
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.