Vee-validate: `options.awareOfUnicodeTokens` must be set to `true` to use `DD` token;

Created on 2 Apr 2019  路  2Comments  路  Source: logaretm/vee-validate

Versions

  • vee-validate: 2.2.0
  • vue: 2.6.6

Describe the bug
After updating from 2.17 to 2.20 I started getting this error message:

[Vue warn]: Error in render: "RangeError: `options.awareOfUnicodeTokens` must be set to `true` to use `DD` token; see:

Solution
On some of my text fields I had a date format validation. The format of the date validation has changed between the two versions.

Change your casing:
validation="required|date_format:dd/MM/yyyy"

See documentation:
https://baianat.github.io/vee-validate/guide/rules.html#date-format

Most helpful comment

Faced the same error today, not sure while doing npm install it should warn about such changes :| Thanks @GreggOD 馃挴

All 2 comments

Only added it to help others if they run into the same issue.

thanks

Faced the same error today, not sure while doing npm install it should warn about such changes :| Thanks @GreggOD 馃挴

Was this page helpful?
0 / 5 - 0 ratings

Related issues

the94air picture the94air  路  3Comments

YamenSharaf picture YamenSharaf  路  3Comments

jagasan picture jagasan  路  3Comments

kidox picture kidox  路  3Comments

Hoagiex picture Hoagiex  路  3Comments