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.

Uncaught (in promise) TypeError: Cannot read property 'validations' of undefined

See original GitHub issue

Getting this issue when AvFields are rendered dynamically. AvForm.js:525 Uncaught (in promise) TypeError: Cannot read property 'validations' of undefined my code is as follows <AvForm className='form-horizontal' onSubmit={this.handleSubmit}> {this.renderFormFeild()} {this.renderButton()} </AvForm>

renderFormFeild() function returned different form field as per current state and state get changed on radio outside the form. When i change any text in input field get this issue.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
JonoAugustinecommented, Nov 7, 2019

I’m also getting this err. It comes up when trying to insert a field into a form with another component:

  const EVField = props_ => (
    <AvField
      type="number"
      validate={{
        min: { value: 0 },
        max: { value: 252 }
      }}
      name={props_.name} />
  );

<AvForm>
   <EVField name="name" />
</AvForm>
1reaction
hpsharoncommented, May 9, 2020

Hi,

anyone has a solution for it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Cannot read property 'validate' of undefined
I am trying to validate my registration form but I'm getting this error and I can't solve it. my form submit button goes...
Read more >
TypeError: Cannot read property 'validate' of undefined? - React
“Cannot read property 'validate' of undefined”? Anyone can help in finding the error. ... Is there any more to that error? For example...
Read more >
Uncaught TypeError: Cannot read property 'mode' of undefined
Uncaught TypeError : Cannot read property 'mode' of undefined ... Thanks for your help in advance!. Some error in console after clicking submit...
Read more >
Uncaught (in promise) TypeError: Cannot read properties of ...
1 Answer 1 · Is it not error.body. · Perhaps... I've never seen a javascript exception have a body property at all. ·...
Read more >
Cannot read property '$model' of undefined - Vuelidate
TypeError : Cannot read property '$model' of undefined - Vuelidate ... minLength } from 'vuelidate/lib/validators' export default { data() { return { title: ......
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