SteveMilesQuant / levelUpLearning

0 stars 0 forks source link

Something's up with Zod #22

Closed SteveMilesQuant closed 1 week ago

SteveMilesQuant commented 7 months ago

Zod doesn't display my error messages on the form pages, only the modals. It doesn't handle numbers well.

SteveMilesQuant commented 6 months ago

I don't think it's zod or yup. It might be that my packages need an update. Today, I tried moving around FormControl, wrapping in a box or form, and using FormErrorMessage. Nothing seemed to work. For some reason, the modal works just fine, but the non-modal form doesn't. I believe this all works with llmrpg, so maybe I just need to update npm/chakra/react-hook-form.

The numbers issue probably is Zod and switching to Yup will be better. Putting that off for now.