Search code examples
javascriptvue.jsvuejs2vue-componentvee-validate

ValidationProvider isn't displaying the error message of the dictionary - VeeValidate with VueJS


I would like to customize the error message of a component that didn't match the "cpf" rule. For that kind of situation, I think that the dictionary of custom messages should work, but I couldn't figure it out how to implement this.

This codesandbox example works for a simple input, but I would like to validate a component

So far, to display the error message "Favor preencher o cpf" from the dict, I've made that example, but the error message isn't displaying.

A working CodeSandBox example would help.


Solution

  • The following CodeSandBox example works https://codesandbox.io/s/5xo48x1qkp