kazupon / vue-validator

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

this._validityWatchers[name] is not a function 单页面路由跳转的时候报错,刷新之后正常了 #347

Closed fuyidaotang closed 7 years ago

fuyidaotang commented 7 years ago

TypeError: this._validityWatchers[name] is not a function at Vue$3.unregister (eval at (app.js:886), :407:37) at Vue$3.boundFn [as unregister] (eval at (app.js:616), :126:14) at Validation.unregister (eval at (app.js:886), :558:29) at VueComponent.destroyed (eval at (app.js:886), :1158:16) at callHook (eval at (app.js:616), :2479:19) at VueComponent.Vue.$destroy (eval at (app.js:616), :2463:5) at destroy$1 (eval at (app.js:616), :2682:19) at invokeDestroyHook (eval at (app.js:616), :4144:59) at invokeDestroyHook (eval at (app.js:616), :4149:9) at invokeDestroyHook (eval at (app.js:616), :4149:9) 麻烦能够尽快告诉我哪里错了吗

ra100 commented 7 years ago

I'm getting same error, when trying to hide/remove component that has validator. I'm using v-if to show/hide form. And related to #338