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.

Cannot read property 'instance' of undefined when inside a transition

See original GitHub issue

Versions:

  • VueJs: #.#.#
  • Vee-Validate:

Description:

<div class=" form-group customform-group" :class="{'input': true, 'is-danger': errors.has('school.name') }"> <div class="col-md-12"> <input type="text" class="form-control" name="school.name" v-model="school.name" v-validate="'required'"> <p class="text-danger" v-if="errors.has('school.name')">Please enter School name</p> </div> </div>

Steps To Reproduce:

Error in directive validate update hook: “TypeError: Cannot read property ‘instance’ of undefined”

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Szaszacommented, Jun 1, 2017

@logaretm Awesome, thank you for the ultra-quick turnaround time, it is much appreciated.

0reactions
logaretmcommented, Jun 1, 2017

@Szasza Okay, I was relying on inserted hook for the directive to setup the validation for the field, but it doesn’t trigger when inside a transition element. Anyways I switched it to bind since it is a guaranteed hook.

Read more comments on GitHub >

github_iconTop Results From Across the Web

getting TypeError: Cannot set property 'transition' of undefined ...
It seems there is a known issue with react-transition-group. There are few workarounds posted in the ticket, but most of them didn't work ......
Read more >
Uncaught TypeError: Cannot read property of undefined
If you get undefined error, you need to make sure that which ever variables throws undefined error, is assigned a value to it....
Read more >
Cannot Read Property of Undefined in JavaScript - Rollbar
TypeError : Cannot read property of undefined occurs when a property is read or a function is called on an undefined variable.
Read more >
Avoiding those dang cannot read property of undefined errors
Uncaught TypeError : Cannot read property 'foo' of undefined. ​ The dreaded error we all hit at some point in JavaScript development.
Read more >
Angular 2 injector error "Cannot read property 'instance' of ...
Coding example for the question Angular 2 injector error "Cannot read property 'instance' of undefined"-angular.js.
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