Skip to content

Incompatible peer dependency: react-native-nitro-modules (v0.35.x compatibility) #4

@fairstyle

Description

@fairstyle

Description

When trying to build or install dependencies in a project using newer versions of the Nitro ecosystem (specifically react-native-nitro-modules@0.35.x), there is a peer dependency conflict with @bernagl/react-native-date.

The library currently strictly requires react-native-nitro-modules@"^0.31.10". However, many projects are now upgrading to newer versions (v0.35.x) required by other packages in the ecosystem (like react-native-nitro-file-system) or due to the migration to Expo 55.

Error Output

npm error code ERESOLVE
npm error While resolving: @bernagl/react-native-date@2.0.1
npm error Found: react-native-nitro-modules@0.35.2
npm error node_modules/react-native-nitro-modules
npm error   react-native-nitro-modules@"^0.35.2" from the root project
...
npm error Could not resolve dependency:
npm error peer react-native-nitro-modules@"^0.31.10" from @bernagl/react-native-date@2.0.1

Environment

Expo version: 55

Package version: 2.0.1

Node version: v24.14.1

Platform: Android (EAS Build)

Suggested Fix
Update the peerDependencies in package.json to support a wider range of react-native-nitro-modules versions, or verify compatibility with the 0.35.x release to avoid the need for --legacy-peer-deps.

Thank you for maintaining this library!

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