Skip to content

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

@lalsilva

Description

@lalsilva

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions