Vee-validate: No such validator

Created on 23 Dec 2016  路  2Comments  路  Source: logaretm/vee-validate

Versions:

  • VueJs: 2.0
  • Vee-Validate: 2.0.0-beta.18

Description:

i got error message as below, when i use date_format or date_between or after and before.
am i doing wrong with date format ???

"[vee-validate]: No such validator 'date_between' exists."

Steps To Reproduce:

Most helpful comment

Date validators requires moment to either be in the global scope, or you install them manually, that solves the dependency problem without increasing the plugin size.

import moment from 'moment';
import { Validator } from 'vee-validate';

Validator.installDateTimeValidators(moment);

All 2 comments

Date validators requires moment to either be in the global scope, or you install them manually, that solves the dependency problem without increasing the plugin size.

import moment from 'moment';
import { Validator } from 'vee-validate';

Validator.installDateTimeValidators(moment);

thanks for reply ...
you save my day ~

Was this page helpful?
0 / 5 - 0 ratings

Related issues

saintplay picture saintplay  路  3Comments

yyyuuu777 picture yyyuuu777  路  3Comments

YamenSharaf picture YamenSharaf  路  3Comments

parweb picture parweb  路  3Comments

DanielPe05 picture DanielPe05  路  3Comments