Closed evstinik closed 5 years ago
your plugins should be defined like this:
import dvr from "mobx-react-form/lib/validators/DVR";
import vjf from "mobx-react-form/lib/validators/VJF";
import validatorjs from "validatorjs";
const plugins = {
vjf: vjf(),
dvr: dvr(validatorjs)
};
see form.js here https://codesandbox.io/s/rr1kvn07op
can you share a codesandbox which replicates the error?
My colleague just found out that deleting node modules, reinstalling new version and initializing vjf plugin resolved the issue. Thanks a lot for your time.
Hi @foxhound87 Thank you for your nice library.
We've been experiencing some issues with latest versions.
Problem with custom async VJF validation rule. Our code:
Validation function works perfectly in v1.36.3 and earlier, but >= 1.37 we get exception:
Following the documentation we also tried to initialize vjf by adding it to plugins like this:
And got error:
Cannot read premises of undefined
. Aaand we stuck here. For now we limited version of mobx-react-form to 1.36.3.Thanks