Cannot read property 'instance' of undefined when inside a transition
See original GitHub issueVersions:
- 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:
- Created 6 years ago
- Reactions:2
- Comments:7 (3 by maintainers)
Top 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 >
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
@logaretm Awesome, thank you for the ultra-quick turnaround time, it is much appreciated.
@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 atransition
element. Anyways I switched it tobind
since it is a guaranteed hook.