Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught (in promise) Error: [vee-validate] No such validator 'not_in' exists. #1351

Closed
pmochine opened this issue May 29, 2018 · 4 comments
Closed
Labels
📚 docs documentation related

Comments

@pmochine
Copy link

Versions

-vee-validate doc

Describe the bug
Doc error.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://baianat.github.io/vee-validate/guide/rules.html#is-not
  2. Click on a selected number
  3. Scroll down to console
  4. See error

Desktop (please complete the following information):

  • OS: Ios
  • Browser Chrome
  • Version 66
@logaretm logaretm added the 📚 docs documentation related label Jun 2, 2018
@logaretm
Copy link
Owner

logaretm commented Jun 2, 2018

Sorry about that, the rule name will be changed in the next version, so the docs probably got built by mistake to reflect these changes.

The reason for renaming the rule is that it causes conflicts with JS in keyword in some contexts.

@logaretm logaretm closed this as completed Jun 2, 2018
@Clinsmann
Copy link

This v-validate="'required|not_in:choose'" still doesn't work for me.

Error: [vee-validate] No such validator 'not_in' exists.

please a good example with vee-validate on native html select input(not v-select) willl help understand this.

@logaretm
Copy link
Owner

@Clinsmann The not_in rule has been renamed to excluded because the in rule had conflicts in some environments with the in keyword.

in => included
not_in => excluded

here is an example: https://jsfiddle.net/vapg04j6/

@Clinsmann
Copy link

Clinsmann commented Nov 22, 2018

Thanks for the urgent reply @logaretm

It did not work but i found a solution that works.

i change my settings on app.js from

Vue.use(VeeValidate);

to

Vue.use(VeeValidate, { events: 'input|blur' });

and added data-vv-validate-on="blur" as an attribute to the select tag like this

<select name="status" v-model="form.status" v-validate="'required'" data-vv-validate-on="blur"> <option v-for="status in statuses" :value="status">{{status | capitalize}} </select>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📚 docs documentation related
Projects
None yet
Development

No branches or pull requests

3 participants