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

Validator 'in' must be named 'in_' otherwise it is not found #121

Closed
kindziora opened this issue Jan 17, 2024 · 0 comments
Closed

Validator 'in' must be named 'in_' otherwise it is not found #121

kindziora opened this issue Jan 17, 2024 · 0 comments

Comments

@kindziora
Copy link

kindziora commented Jan 17, 2024

Environment

"@vueform/vueform": "^1.6.6",
"vite": "5.0.0-beta.0",
"vite-plugin-imagemin": "0.6.1",
"vite-plugin-purge-icons": "0.9.2",
"vite-plugin-pwa": "0.16.4",
"vite-plugin-radar": "0.9.1",

Reproduction

<TextElement :rules="['in:test']" />

Describe the bug

The reason seems the class that is named 'in_' (because 'in' is a reserved name i guess)
https://github.com/vueform/vueform/blob/d84a227924b2c730b65b156a43d2d3407bff6dd3/src/services/validation/rules/in.js

Additional context

No response

Logs

@vueform_vueform.js:8840 Uncaught (in promise) Error: Unknown rule: 'in'
    at Proxy.make (@vueform_vueform.js:8840:13)
    at @vueform_vueform.js:8835:75
    at arrayMap (@vueform_vueform.js:2476:25)
    at map (@vueform_vueform.js:4098:14)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants