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

manniL picture manniL  路  17Comments

logaretm picture logaretm  路  35Comments

CephNightmare picture CephNightmare  路  18Comments

tiapossoftware picture tiapossoftware  路  19Comments

renedekat picture renedekat  路  19Comments