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
Therefore, when creating a package that includes react-hook-form as a peer dependency, context problems occur because esm and cjs are viewed differently.
Relevant log output
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Version Number
7.51.4
Codesandbox/Expo snack
https://github.com/Sh031224/react-hook-form-bundle
Steps to reproduce
git clone https://github.com/Sh031224/react-hook-form-bundle.git
cd react-hook-form-bundle
pnpm install && pnpm run dev
dist/index.cjs.js?:1
Expected behaviour
All packages must use esm.
What browsers are you seeing the problem on?
If you look at the source section with the Components tool of the react dev tool, only react-hook-form uses the commonjs bundle.
I think this issue is related. #8281
Therefore, when creating a package that includes react-hook-form as a peer dependency, context problems occur because esm and cjs are viewed differently.
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: