Skip to content

Unable to install sentry sdk  #1328

@jenipharachel

Description

@jenipharachel

Environment

How do you use Sentry?
@sentry/[email protected] for tracking mobile app errors

Which SDK and version?
@sentry/[email protected]

Steps to Reproduce

I followed the installation steps from this site https://docs.sentry.io/platforms/react-native/

npm install --save @sentry/react-native -----> command stated that there were dependency issue.

Expected Result

successful installation of sentry sdk but it failed

Actual Result

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   react@"16.13.1" from the root project
npm ERR!   peer react@">=16.4.1" from @sentry/[email protected]
npm ERR!   node_modules/@sentry/react-native
npm ERR!     @sentry/react-native@"*" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"17.0.1" from [email protected]
npm ERR! node_modules/@sentry/react-native/node_modules/react-dom
npm ERR!   peer react-dom@"15.x || 16.x || 17.x" from @sentry/[email protected]
npm ERR!   node_modules/@sentry/react-native/node_modules/@sentry/react
npm ERR!     @sentry/react@"6.0.3" from @sentry/[email protected]
npm ERR!     node_modules/@sentry/react-native
npm ERR!       @sentry/react-native@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /home/jenipha/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/jenipha/.npm/_logs/2021-02-03T11_33_25_304Z-debug.log

Please help me find what the issue might be and my react-native version is "react": "16.13.1" and "react-native": "0.63.2",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions