kazupon / vue-validator

:white_check_mark: Validator component for Vue.js
MIT License
2.19k stars 431 forks source link

when i run examples, it can not use. #351

Open likyh opened 7 years ago

likyh commented 7 years ago
vue.js:513 [Vue warn]: Error when rendering root instance: warn @ vue.js:513Vue._render @ vue.js:2934(anonymous function) @ vue.js:2335get @ vue.js:1643run @ vue.js:1712flushSchedulerQueue @ vue.js:1530(anonymous function) @ vue.js:465nextTickHandler @ vue.js:414
vue.js:427 TypeError: Cannot read property 'invalid' of undefined(…)logError @ vue.js:427
vue.js:5929 Download the Vue Devtools for a better development experience:
https://github.com/vuejs/vue-devtools

when i run examples, it can not use.

likyh commented 7 years ago

maybe you should add && typeof value == 'undefined' in util.js line 114 i dont know why this.$validation is not complete at first