Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native error - Unable to resolve module `./tab-bar-item-ios`

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?

like image 369
james murphy Avatar asked Jan 23 '21 22:01

james murphy


1 Answers

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.

like image 110
Cyrax Avatar answered Oct 21 '22 15:10

Cyrax