We are trying to port our React app from CRA to Vite.js but are experiencing problems with using custom DVR rules with validator.js package.
When we try to define our custom rule, we get:
TypeError: Cannot set properties of undefined (setting 'location')
...
Please see error message in CodeSandbox example: example
We know it looks like this is validator.js issue but we don't think we did anything different from example on mobx-react-forms docs page. Any input is appreaciated.
We are trying to port our React app from CRA to Vite.js but are experiencing problems with using custom DVR rules with validator.js package.
When we try to define our custom rule, we get:
Please see error message in CodeSandbox example: example
We know it looks like this is validator.js issue but we don't think we did anything different from example on mobx-react-forms docs page. Any input is appreaciated.
Thanks