Nativebase: UNMET PEER DEPENDENCIES

Created on 1 May 2017  ยท  23Comments  ยท  Source: GeekyAnts/NativeBase

Hi,
These are the versions for my react native application
"react": "16.0.0-alpha.6",
"react-native": "0.44.0",
"react-native-vector-icons": "^4.0.1"

While installing [email protected], i ran into this issues:

npm WARN @shoutem/[email protected] requires a peer of react@^15.0.0 but none was installed.
npm WARN [email protected] requires a peer of react@>=15.1.0 but none was installed.
npm WARN [email protected] requires a peer of react@^0.13.0 || ^0.14.0 || ^15.0.0 but none was installed.

Please i need an advice on how i can install native-base to work with my current versions or do i have to downgrade to a lower version of react-native that supports react@^15.0.0

warning

Most helpful comment

2.1.5 craches my app in several places!

2.1.4

        return color(this.toolbarDefaultBg).darken(0.2).hexString();

->
2.1.5

        return color(this.toolbarDefaultBg).darken(0.2).hex();

All 23 comments

same problem

Same problem:

npm WARN [email protected] requires a peer of react@>=16.0.0-alpha.3 but none was installed.
npm WARN [email protected] requires a peer of react-native-vector-icons@~4.0.0 but none was installed.

Same shoutem issues, but trying to use RN 0.43.0, not 0.44.0.

Fixed with 2.1.4

@SupriyaKalghatgi - Has this fix been verified by anyone above or on the GeekyAnts team? ( @emekalites, @yogeshmoradiya121, @iegik or @a-shark)? I'm still seeing this issue.

How I'm installing nativebase: npm install [email protected] -S

A portion of my package.json

  "dependencies": {
    "native-base": "^2.1.4",
    "react": "16.0.0-alpha.6",
    "react-native": "0.44.2"
  },
  "devDependencies": {
    "babel-jest": "20.0.3",
    "babel-preset-react-native": "1.9.2",
    "eslint": "^3.19.0",
    "eslint-plugin-react": "^7.0.1",
    "eslint-plugin-react-native": "^2.3.2",
    "jest": "20.0.4",
    "react-test-renderer": "16.0.0-alpha.6"
  }
โ”œโ”€โ”ฌ [email protected] 
...
โ”œโ”€โ”ฌ [email protected] 
...
โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”œโ”€โ”ฌ @shoutem/[email protected] 
โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”œโ”€โ”€ UNMET PEER DEPENDENCY react@^15.0.0
โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected] 
โ”‚ โ”‚   โ””โ”€โ”€ [email protected] 
โ”‚ โ””โ”€โ”€ [email protected] 

npm WARN [email protected] requires a peer of react@>=15.1.0 but none was installed.
npm WARN @shoutem/[email protected] requires a peer of react@^15.0.0 but none was installed.

still get the same issue with this command "npm install [email protected] -S"

[email protected] postinstall /Users/yehiaberam/Documents/projects/AwesomeNativeBase/node_modules/native-base
node addEjectScript.js

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ NativeBase 2.0 has been succesfully installed! โ”‚
โ”‚ Run node node_modules/native-base/ejectTheme.js to copy over theme config and variables. โ”‚
โ”‚ Head over to the docs for detailed information on how to make changes to the theme. โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
[email protected] /Users/yehiaberam/Documents/projects/AwesomeNativeBase
โ””โ”€โ”ฌ [email protected]
โ””โ”€โ”€ UNMET PEER DEPENDENCY react@^15.0.0

npm WARN [email protected] requires a peer of react@>=15.1.0 but none was installed.
npm WARN @shoutem/[email protected] requires a peer of react@^15.0.0 but none was installed.

so what to do with this issues !!!!

@SupriyaKalghatgi this issue hasnt been fixed at all

Hi, apart from the warning, are you facing any problems using the library?

@sankhadeeproy007 [email protected], [email protected] with [email protected] works well. Using anything higher than the said versions of RN and react is the issue.

Okay, thanks for the info, will be fixed tomorrow in the new patch :)

Check NativeBase 2.1.5

โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected] 
โ”‚ โ”‚   โ””โ”€โ”ฌ [email protected] 
โ”‚ โ”‚     โ””โ”€โ”€ [email protected] 
โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”œโ”€โ”€ UNMET PEER DEPENDENCY react@^15.0.0
โ”‚ โ””โ”€โ”€ [email protected] 
โ””โ”€โ”€ UNMET PEER DEPENDENCY [email protected]

2.1.5 craches my app in several places!

2.1.4

        return color(this.toolbarDefaultBg).darken(0.2).hexString();

->
2.1.5

        return color(this.toolbarDefaultBg).darken(0.2).hex();

changing .hexString() to .hex() everywhere worked for me

I get the error when doing yarn check

error "native-base#@shoutem/animation#react@^15.0.0" doesn't satisfy found match of "[email protected]"

 "dependencies":  {
    "native-base": "2.2.1",
    "react": "16.0.0-alpha.12",
    "react-native": "0.46.1",
  }

Is there any solution for this?

Acked: with fresh react-native init then native-base install I got outdated dependency
...
warning: "@shoutem/[email protected]" has incorrect peer dependency "react@^15.0.0".
...

package.json:
"native-base": "2.2.1"
"react": "16.0.0-alpha.12"
"react-native": "0.46.1"

same problem

@nonameolsson Thats because of the version upgrade of color package. With version 1.x of color, the use case had changed a bit

[email protected] requires print-message

npm install [email protected] --save
npm i [email protected] --save
Was this page helpful?
0 / 5 - 0 ratings