Skip to content

Invalid configuration warning: 'dependency.hooks' is not allowed #408

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
lalsilva opened this issue Mar 20, 2025 · 0 comments
Open

Invalid configuration warning: 'dependency.hooks' is not allowed #408

lalsilva opened this issue Mar 20, 2025 · 0 comments

Comments

@lalsilva
Copy link

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.2

Description

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

  1. Install the react-native-blob-util package:
    yarn add react-native-blob-util
    
  2. Start the Metro Bundler:
    npx react-native start
    
  3. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant