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?
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.
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"
Related
I am facing the error below in the picture when I am trying to build my react-native app on android emulator.
To give more detail it gets stuck in configuring phase when performing:
(:react-native-reanimated > Resolve dependencies of :react-native-reanimated:classpath > gradle-7.3.0.pom)
(By the way, ios simulator works perfectly fine!)
Version of the packages that I am using:
"react-native": "0.70.1",
"react-native-reanimated": "^2.13.0"
Can anyone help me with this?
Well I am going to post the answer myself, but this will only be useful for developers who work in locations in which google services like Android are sanctioned.
The problem was simply my internet connection being unable to download the react-native-reanimated:classpath.
So to solve this issue or any other similar issue in the configuration phase, you have to use a VPN to change the source of request to be able to download the required packages to get your build.
After upgrading my react-native version from 0.68.5 to 0.70.5. I am constantly getting this error on starting the JS bundler.
I have tried multiple things like upgrading the #react-native-community/cli version in my package.json file, etc. But nothing worked.
Does anyone have any idea about this issue?
Thanks in advance!
I ran into that strange issue after upgrading to React Native 0.59.1 and trying to run my app on iOS devices in xcode.
Loading dependency graph, done.
error: bundling failed: Error: Cannot find module 'babel-plugin-graphql-tag' from '/Users/me/react_projects/my-app'
- If you want to resolve "graphql-tag", use "module:graphql-tag"
I tried to install some potentially missing packages but it does not help. I can post my package.json if that helps.
Many thanks in advance for any help!
I have created an android module from here and added to my project. Now I am getting below error while running application.
bundling failed: ambiguous resolution: module projectpath\index.js tries to require react-native, but there are several files providing this module. You can delete or fix them:
Got the solution. following command help me to overcome above error
yarn start --reset-cache
I upgraded to the latest react-native (0.23.1) and started getting the error:
I keep getting this error even after downgrading, so not sure if react-native is the cause, or another dependency I have. I could not find this error message by searching Google.
I also tried installing npm install object-assign and that did not help.
I am running babel preset babel-preset-react-native-stage-0.
Turns out the issue was with react. downgrading to React 0.14.8 fixed the issue.
I also meet this question today. Maybe, it is beacuse you upgrade the React to #15.* version. Downgrade the React to #0.14.8 version, it works!