[PROMOÇÃO] Assine com + 30% de desconto ANUAL MENSAL (últimas horas)

/aula/validando-campos-veevalidate

[Finalizado Pelo Aluno]

Jefferson Taborda
Criador Jefferson Taborda 24/03/2018

Olá professor, quando incluo o v-if="errors.has('email') para validar o e-mail, primeiro exercício de validação, recebo este erro no console e nada mais renderiza na tela

 

[HMR] Waiting for update signal from WDS...

2vue.esm.js?efeb:591 [Vue warn]: Property or method "email" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.

 

found in

 

---> <FormComponent> at src\components\FormComponent.vue

       <App> at src\App.vue

         <Root>

warn @ vue.esm.js?efeb:591

vue.esm.js?efeb:591 [Vue warn]: Property or method "errors" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.

 

found in

 

---> <FormComponent> at src\components\FormComponent.vue

       <App> at src\App.vue

         <Root>

warn @ vue.esm.js?efeb:591

vue.esm.js?efeb:591 [Vue warn]: Error in render: "TypeError: Cannot read property 'has' of undefined"

 

found in

 

---> <FormComponent> at src\components\FormComponent.vue

       <App> at src\App.vue

         <Root>

warn @ vue.esm.js?efeb:591

vue.esm.js?efeb:1741 TypeError: Cannot read property 'has' of undefined

    at Proxy.render (FormComponent.vue?7599:60)

    at VueComponent.Vue._render (vue.esm.js?efeb:4544)

    at VueComponent.updateComponent (vue.esm.js?efeb:2788)

    at Watcher.get (vue.esm.js?efeb:3142)

    at new Watcher (vue.esm.js?efeb:3131)

    at mountComponent (vue.esm.js?efeb:2795)

    at VueComponent.Vue.$mount (vue.esm.js?efeb:8540)

    at VueComponent.Vue.$mount (vue.esm.js?efeb:10939)

    at init (vue.esm.js?efeb:4137)

    at createComponent (vue.esm.js?efeb:5608)

logError @ vue.esm.js?efeb:1741

vue.esm.js?efeb:8566 You are running Vue in development mode.

Make sure to turn on production mode when deploying for production.

See more tips at https://vuejs.org/guide/deployment.html

client?cd17:77 [WDS] Hot Module Replacement enabled.


Manager Carlos Ferreira 24/03/2018

Olá, Jefferson!
Tudo bem?

Você finalizou o chamado. Conseguiu resolver? Tá tudo bem?

Qualquer coisa que precisar de mim, saiba que pode contar.

Carlos Ferreira
Criador Jefferson Taborda 24/03/2018

Foi erro meu professor, tava na minha cara e não vi...eu estava com dois projetos abertos e chamava o vee-validate no main.js do outro projeto...nunca iria funcionar não é?kkkk, desculpe o tempo perdido aí! Obrigado pela resposta.

 

Jefferson Taborda
Sabe a Solução? Ajude a resolver!

Precisa estar logado para conseguir responder a este ticket!

Clique Aqui Para Entrar!