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

Validation.js #2

Open
melitus opened this issue Aug 29, 2018 · 1 comment
Open

Validation.js #2

melitus opened this issue Aug 29, 2018 · 1 comment

Comments

@melitus
Copy link

melitus commented Aug 29, 2018

As a baby programmer, i am using this great repo to learn best practice and how to write clean code .Using the utils/validation.js in another project, i got the the following error. rule is not a function. Please how can i solve this. Thanks

@dongcai
Copy link
Owner

dongcai commented Sep 20, 2018

Sorry for the late reply.
Can you find "src/utils/validation.js" and add console.log(rules) after "export function createValidator(rules, params) {" (line# 57) to make sure all rules are function?

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

2 participants