foxhound87 / mobx-react-form

Reactive MobX Form State Management
https://foxhound87.github.io/mobx-react-form
MIT License
1.09k stars 129 forks source link

Experiencing problems with validatorjs plugin #637

Closed Gep93 closed 2 months ago

Gep93 commented 2 months ago

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.

Thanks