8

Ive just upgraded react-native-vector-icons from version 7.1 to 8.0......and now Im getting the following error:

    unable to resolve module `./tab-bar-item-ios` from `node_modules\react-native-vector-icons\lib\create-icon-set.js`
    None of these files exist:
  * node_modules\react-native-vector-icons\lib\tab-bar-item-ios(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx).........etc

Im testing on real Android device, using a windows computer. Any ideas?

james murphy
  • 1,505
  • 5
  • 31
  • 57

2 Answers2

27

It's a cache problem, you can fix it running:

react-native start --reset-cache

Created this account just to answer your question hehe, i know how frustrating those errors can be.

Cyrax
  • 286
  • 2
  • 2
0

Did you use caret(^) when specifying version of react-native-vector-icons? I had same error message and it worked for me after removing '^'

"react-native-vector-icons": "^8.0.0" => "react-native-vector-icons": "8.0.0"

Dharman
  • 30,962
  • 25
  • 85
  • 135
skang
  • 265
  • 2
  • 2