Skip to content
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

Wizard setup cancelled (@sentry/react-native) #760

Open
sanju280696 opened this issue Jan 16, 2025 · 3 comments
Open

Wizard setup cancelled (@sentry/react-native) #760

sanju280696 opened this issue Jan 16, 2025 · 3 comments

Comments

@sanju280696
Copy link

sanju280696 commented Jan 16, 2025

Getting error while installing sentry

Encountered the following error during installation:

│  
│  Error: Command failed: npm add @sentry/react-native 
│  npm WARN ERESOLVE overriding peer dependency
│  npm WARN While resolving: [email protected]
│  npm WARN Found: [email protected]
│  npm WARN node_modules/typescript
│  npm WARN   peer typescript@">=4.2.0" from [email protected]
│  npm WARN   node_modules/ts-api-utils
│  npm WARN     ts-api-utils@"^1.3.0" from @typescript-eslint/[email protected]
│  npm WARN     node_modules/@react-native/eslint-config/node_modules/@typescript-eslint/eslint-plugin
│  npm WARN     5 more (@typescript-eslint/type-utils, ...)
│  npm WARN   2 more (tsutils, the root project)
│  npm WARN 
│  npm WARN Could not resolve dependency:
│  npm WARN peerOptional typescript@">=4.9.5" from [email protected]
│  npm WARN node_modules/cosmiconfig
│  npm WARN   cosmiconfig@"^9.0.0" from @react-native-community/[email protected]
│  npm WARN   node_modules/@react-native-community/cli-config
│  npm WARN 
│  npm WARN Conflicting peer dependency: [email protected]
│  npm WARN node_modules/typescript
│  npm WARN   peerOptional typescript@">=4.9.5" from [email protected]
│  npm WARN   node_modules/cosmiconfig
│  npm WARN     cosmiconfig@"^9.0.0" from @react-native-community/[email protected]
│  npm WARN     node_modules/@react-native-community/cli-config
│  npm ERR! code ERESOLVE
│  npm ERR! ERESOLVE could not resolve
│  npm ERR! 
│  npm ERR! While resolving: [email protected]
│  npm ERR! Found: [email protected]
│  npm ERR! node_modules/react
│  npm ERR!   peer react@"*" from @gorhom/[email protected]
│  npm ERR!   node_modules/@gorhom/bottom-sheet
│  npm ERR!     @gorhom/bottom-sheet@"^5.0.6" from the root project
│  npm ERR!   peer react@"*" from @gorhom/[email protected]
│  npm ERR!   node_modules/@gorhom/portal
│  npm ERR!     @gorhom/portal@"1.0.14" from @gorhom/[email protected]
│  npm ERR!     node_modules/@gorhom/bottom-sheet
│  npm ERR!       @gorhom/bottom-sheet@"^5.0.6" from the root project
│  npm ERR!     @gorhom/portal@"^1.0.14" from the root project
│  npm ERR!   45 more (@jsamr/react-native-li, ...)
│  npm ERR! 
│  npm ERR! Could not resolve dependency:
│  npm ERR! peer react-dom@"^18.0.0" from [email protected]
│  npm ERR! node_modules/react-native-web
│  npm ERR!   peerOptional react-native-web@">= 0.11" from [email protected]
│  npm ERR!   node_modules/react-native-maps
│  npm ERR!     react-native-maps@"^1.20.1" from the root project
│  npm ERR!   react-native-web@"^0.19.7" from the root project
│  npm ERR! 
│  npm ERR! Conflicting peer dependency: [email protected]
│  npm ERR! node_modules/react
│  npm ERR!   peer react@"^18.3.1" from [email protected]
│  npm ERR!   node_modules/react-dom
│  npm ERR!     peer react-dom@"^18.0.0" from [email protected]
│  npm ERR!     node_modules/react-native-web
│  npm ERR!       peerOptional react-native-web@">= 0.11" from [email protected]
│  npm ERR!       node_modules/react-native-maps
│  npm ERR!         react-native-maps@"^1.20.1" from the root project
│  npm ERR!       1 more (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.
@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Jan 16, 2025
@s1gr1d s1gr1d changed the title Wizard setup cancelled Wizard setup cancelled (@sentry/react-native) Jan 16, 2025
@krystofwoldrich
Copy link
Member

krystofwoldrich commented Jan 16, 2025

Hi @sanju280696,
to confirm did wizard correctly detected npm as your package manager?

Does the same error happens when running npm install or adding any other dependencies?

The RN Sentry package doesn't depend nor requires any of the mentioned packages.

@getsantry getsantry bot moved this from Waiting for: Product Owner to Waiting for: Community in GitHub Issues with 👀 3 Jan 16, 2025
@getsantry getsantry bot moved this from Waiting for: Community to Waiting for: Product Owner in GitHub Issues with 👀 3 Jan 16, 2025
@getsantry getsantry bot moved this from Waiting for: Product Owner to Waiting for: Community in GitHub Issues with 👀 3 Jan 16, 2025
@krystofwoldrich krystofwoldrich moved this from Needs Discussion to Needs More Information in Mobile & Cross Platform SDK Jan 16, 2025
@sanju280696
Copy link
Author

Thanks for reply @krystofwoldrich ,

When I install other dependencies, I don’t encounter any issues.

@getsantry getsantry bot moved this from Waiting for: Community to Waiting for: Product Owner in GitHub Issues with 👀 3 Jan 16, 2025
@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Jan 17, 2025
@krystofwoldrich
Copy link
Member

krystofwoldrich commented Jan 17, 2025

Thank you,
sadly we are not able to reproduce the issue and the errors don't seem to be related to the @sentry/react-native package.

The first error says that you have TypeScript 4.8.4 installed but [email protected] requires TypeScript >=4.9.5. Do you use [email protected] or some of your deps require it?

The second error seems to be cause by missing exact version of [email protected]. Do you have react-dom installed?

After the deps issues are resolved you should be able to install RN Sentry SDK without errors.


If you believe the issue is the SDK package, we will need a reproducible example to investigate this further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting for: Community
Status: Needs More Information
Development

No branches or pull requests

3 participants