-
-
Notifications
You must be signed in to change notification settings - Fork 164
Description
Versions information
react-native: 0.71.14
react-native-blob-util: 0.13.18
yarn: 1.22.22
node: v22.14.0
macOS: 15.3.2Description
When starting the Metro Bundler in my React Native project, I receive the following warning related to the react-native-blob-util package:
warn Package react-native-blob-util contains invalid configuration: "dependency.hooks" is not allowed. Please verify it's properly linked using "react-native config" command and contact the package maintainers about this.
It seems that the "dependency.hooks" field in the package's package.json is no longer supported in recent versions of React Native, causing this warning. While the warning does not directly affect the application's functionality, it might indicate an outdated or unnecessary configuration.
Steps to Reproduce
- Install the
react-native-blob-utilpackage:yarn add react-native-blob-util
- Start the Metro Bundler:
npx react-native start
- Observe the warning in the terminal:
warn Package react-native-blob-util contains invalid configuration: "dependency.hooks" is not allowed.
Expected Behavior
No warning should appear when starting the Metro Bundler, as the react-native-blob-util package configuration should be fully compatible with the latest versions of React Native.
Possible Solution
The "dependency.hooks" field in the package.json file of the react-native-blob-util package appears to be obsolete. It might be removed or updated to align with the latest React Native standards.