You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm really hoping I'm not missing something simple. I could have sworn I got a simple example working after your most recent push (8727490), but now I can't get anything involving custom methods to work. Any schema with a custom method returns this error. I've inspected the yup module and the method is there, as far as I can tell.
The text was updated successfully, but these errors were encountered:
When I install the yup-ast package via NPM, it breaks because yup-ast has the yup dependency installed inside of its own folder.
When I use yarn instead; the package gets hoisted up and both use the same version.
If they use different versions, the yup instance never gets the custom method, so you will have to provide your "custom" instance via the second argument (like so: transformAll([...], yup) to fix the issue.
Right now I don't know why npm does not link those two together, but, hey. at least there's a workaround?
https://codesandbox.io/s/epic-ives-ymo6w?file=/src/index.js
I'm really hoping I'm not missing something simple. I could have sworn I got a simple example working after your most recent push (8727490), but now I can't get anything involving custom methods to work. Any schema with a custom method returns this error. I've inspected the yup module and the method is there, as far as I can tell.
The text was updated successfully, but these errors were encountered: