Error in callback for immediate watcher "value": "TypeError: Cannot read property 'isValid' of null"
Daniyal-Javani opened this issue · 2 comments
Daniyal-Javani commented
Thanks for the 1.1.6 version and it's cool clearable feature. I'm getting the following error in this new version, updated with npm. Can you help me to resolve it.
[Vue warn]: Error in callback for immediate watcher "value": "TypeError: Cannot read property 'isValid' of null"
found in
---> <DatePicker>
<BFormGroup>
<UserForm> at resources/assets/js/components/users/Form.vue
<Root>
and this
admin.js:75661 TypeError: Cannot read property 'isValid' of null
at VueComponent.updateDates (admin.js:104887)
at VueComponent.Vue.$watch (admin.js:77568)
at createWatcher (admin.js:77525)
at initWatch (admin.js:77507)
at initState (admin.js:77267)
at VueComponent.Vue._init (admin.js:78562)
at new VueComponent (admin.js:78730)
at createComponentInstanceForVnode (admin.js:78233)
at init (admin.js:78064)
at createComponent (admin.js:79539)
talkhabi commented
It seems your date model (v-model="date") is null.
data() {
return {
date: null
}
}
Please ensure that date is not null.
Have you used the same way before?
Daniyal-Javani commented
Yes, I've used the same before and after update the error occurred.