react-hook-form / resolvers

📋 Validation resolvers: Yup, Zod, Superstruct, Joi, Vest, Class Validator, io-ts, Nope, computed-types, typanion, Ajv, TypeBox, ArkType, Valibot, effect-ts and VineJS
https://react-hook-form.com/
MIT License
1.72k stars 157 forks source link

Can't import io-ts resolvers since 2.9.7 #703

Open FlorianBurgevin opened 2 months ago

FlorianBurgevin commented 2 months ago

Describe the bug Hello.

I am not able to import the library since version 2.9.6 I got the following error

Error: Directory import '/Users/xxx/node_modules/fp-ts/Either' is not supported resolving ES modules imported from /Users/xxx/node_modules/@hookform/resolvers/io-ts/dist/io-ts.mjs
Did you mean to import fp-ts/lib/Either.js?

I have the same problem in my tests for example or when i build a library with your lib. If i don't fix the version to 2.9.6 it is broken.

Is it something known ? Thanks

FlorianBurgevin commented 2 days ago

UP ?