BearStudio / formiz

🐜 React forms with ease! Composable, headless & with built-in multi steps
https://formiz-react.com/
MIT License
390 stars 50 forks source link

useForm is not working as expected. #215

Closed aylonmuramatsu closed 7 months ago

aylonmuramatsu commented 7 months ago

Describe the bug

When I use useForm in an Expo managed project, I receive an error related to the 'os' module. I can only use the project correctly when I add the 'os' library to my projects

To Reproduce

  1. Install formiz to expo managed app
  2. import & use useForm

Expected behavior

Being able to use formiz without installing an additional module

Screenshots

Screenshot 2024-01-23 at 10 35 08 Screenshot 2024-01-23 at 09 29 30

Smartphone (please complete the following information)

yoannfleurydev commented 7 months ago

Thanks a lot for your issue, it is indeed a bug coming from a Formiz peer dependency. I'm looking to replace that dependency.

yoannfleurydev commented 7 months ago

Hey @aylonmuramatsu thanks again for raising this issue. You can upgrade Formiz to 2.2.2 and remove the os dependency, and it should work. Let us know if there are others issues.