GeekyAnts / GeekyAnts/NativeBase

Dependency issue: Setup new React Native App

Open
#5,259 10 comments 0 reactions 0 assignees View on GitHub
bug triage v3
Dominant language
TypeScript
Stars
20.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

### Description

Dependency issue while creating new react native app using native base template.

### CodeSandbox/Snack link

https://snack.expo.dev/adnansiddiq

### Steps to reproduce

1. react-native --version => 8.0.5
2. node -v => v16.16.0
3. nvm -v => 8.16.0
4. npx react-native init SafeApp --template @native-base/react-native-template

Error:
✔ Downloading template
✔ Copying template
✔ Processing template
✖ Installing dependencies

```
error Error: Command failed: npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: safeapp@0.0.1
npm ERR! Found: react@17.0.1
npm ERR! node_modules/react
npm ERR! react@"17.0.1" from the root project
npm ERR! peer react@"*" from native-base@3.4.0
npm ERR! node_modules/native-base
npm ERR! native-base@"3.4.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^18.2.0" from react-dom@18.2.0
npm ERR! node_modules/react-dom
npm ERR! peer react-dom@"*" from native-base@3.4.0
npm ERR! node_modules/native-base
npm ERR! native-base@"3.4.0" 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 /Users/adnansiddiq/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/adnansiddiq/.npm/_logs/2022-08-09T11_50_15_538Z-debug-0.log

```

### NativeBase Version

3.4.x

### Platform

- [ ] Android
- [ ] CRA
- [ ] Expo
- [ ] iOS
- [ ] Next

### Other Platform

Mac

### Additional Information

Screenshot 2022-08-09 at 4 50 45 PM

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.