[Vuejs]-[Vue warn]: Error in v-on handler: "TypeError: Cannot set property 'email' of undefined"

0đź‘Ť

You access email from a “user” object in the template:

<v-col cols="12" md="4">
                    <VTextFieldWithValidation
                      label="Correo ElectrĂłnico"
                      color="secondary"
                      prepend-icon="mdi-at"
                      rules="required|email"
                      :value="user.email"
                    />

But your user isn’t defined in the component. You have a computed “email” which you probably want to use to get the users email. So, remove the user and use your computed email.

Leave a comment