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
With node 15.0.1 and yarn 1.22.10 installed (as of this writing, the latest available in homebrew)...
Create a new react native app with npx react-native init DummyProj
cd DummyProj/
Install react-hook-form with yarn add react-hook-form
Start the metro bundler with yarn start
Observe the following error output:
$ yarn start
yarn run v1.22.10
$ react-native start
warn Package react-hook-form has been ignored because it contains invalid configuration. Reason: Package subpath './package.json' is not defined by "exports" in /Users/cabiad/src/DummyProj/node_modules/react-hook-form/package.json
Codesandbox link (Required)
(Not applicable for this build issue.)
Expected behavior
The package is not ignored in react native
Desktop (please complete the following information):
OS: MacOS
Browser N/A
Version 6.9.6
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
React native's metro bundler ignores
react-hook-form
and shows a warning.Similar issues have been reported in many other projects as listed in this react native cli issue and the fix used by those projects is quite simple and seemingly low risk.
To Reproduce
Steps to reproduce the behavior:
With node 15.0.1 and yarn 1.22.10 installed (as of this writing, the latest available in homebrew)...
npx react-native init DummyProj
cd DummyProj/
react-hook-form
withyarn add react-hook-form
yarn start
Codesandbox link (Required)
(Not applicable for this build issue.)
Expected behavior
The package is not ignored in react native
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: