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

Formsy.addValidationRule #498

Open
sT0pe opened this issue Aug 2, 2019 · 4 comments
Open

Formsy.addValidationRule #498

sT0pe opened this issue Aug 2, 2019 · 4 comments

Comments

@sT0pe
Copy link

sT0pe commented Aug 2, 2019

I am trying to add own validation using Formsy.addValidationRule
getting error:
TypeError: formsy_react__WEBPACK_IMPORTED_MODULE_12___default.a.addValidationRule is not a function

@chriskistner
Copy link

Hey, I'm getting the same thing, only it says Module_18. Is addValidationRule broken?

TypeError: formsy_react__WEBPACK_IMPORTED_MODULE_18___default.a.addValidationRule is not a function

@romaninio7
Copy link

it's resolved ?

@sT0pe
Copy link
Author

sT0pe commented May 23, 2020

"formsy-react": "2.0.2"

Works for me:

import { addValidationRule } from 'formsy-react';

addValidationRule('isPhone', (values, value, code) => customFunction(values, value, code));

@rkuykendall
Copy link

This project has moved to formsy/formsy-react.

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

No branches or pull requests

4 participants