Issue
Server side rendering in nextjs project was not properly picking up the esm module.js and incorrectly using the cjs which resulted in a provider / context mismatch when using FormProvider from react-hook-form.
Fix
Match the output of react-hook-form to fix resolution issue and keep in sync with that project
Issue Server side rendering in nextjs project was not properly picking up the esm module.js and incorrectly using the cjs which resulted in a provider / context mismatch when using FormProvider from
react-hook-form
.Fix Match the output of react-hook-form to fix resolution issue and keep in sync with that project
Error Repro https://github.com/jdt3969/test-form
Fix Repro https://github.com/jdt3969/test-form/tree/fix