Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in callback for immediate watcher "value": "TypeError: Cannot read property 'isValid' of null" #39

Closed
Daniyal-Javani opened this issue Dec 30, 2018 · 2 comments

Comments

@Daniyal-Javani
Copy link

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
Copy link
Owner

talkhabi commented Dec 30, 2018

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?

@talkhabi talkhabi added the bug label Dec 30, 2018
@Daniyal-Javani
Copy link
Author

Daniyal-Javani commented Dec 30, 2018

Yes, I've used the same before and after update the error occurred.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants