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!
Related
When I am upgrading expo from sdk-33 to sdk-40 version of expo. I am getting this issue, I have aws_appsync dependency in my react-native version 59.10.0.
The problem is occurring when I create new AWSAppSyncClient, I have set "disableOffline" property to true. Still I am getting this issue.
Is this any issue with upgrade expo or react-native dependencies?
Please help me to upgrade EXPO SDK-33 to SDK-40.
When I try to get native-base and when I run the app. It gives me that error. How can I fix that. I am using expo and I installed expo-font.
PLEASE HELP!
Looks like that's a bug in the native-base package.
There is a PR that resolves this issue, but as of me writing this one - it's still not merged yet.
The only workaround is to either try to install older version of native-base, either fork the native-base package and apply in the native-base code the change which fixes the issue.
Or of course, wait... until native-base contributors accept the PR and release a new version with the fix.
Metro bundler building fails when running react-native app with the following error,
bundling failed:
node_modules/react-native-draftjs-render/index.js:app/node_modules/react-native-draftjs-render/index.js:
Cannot read property 'cache' of undefined
How to fix this..? I'm in the middle of upgrading my react-native project to 0.61.5. (I'm really new to react-native)
I come across this issue again while upgrading my project to React Native 0.63.2. I don't remember how I resolved this last time. This time I was using react-native-draftjs-render version 2.9.0 and the issue resolved after downgrading to 2.8.3.
I'm developing an app using react native and I want to use branch.io to get some nice deep links.
I'm running the npm command to install the SDK for branch in react native
npm i react-native-branch#latest --save
I get the following message
And I also get a warning
It seems like the branch package needs a react version higher than 15.4.0. It feels like 16.0.0-alpha.6 should be a higher version than 15.4.0, so why am I getting this message?
I have the following in my package.json
"react": "16.0.0-alpha.6",
"react-native": "0.43.4",
Amruta from Branch.io here:
The message you see is just a warning and should not cause any hindrance in installing the React Native Branch SDK. It should not cause any issues with Deep linking either. We cannot impose a restriction on usage of React version 16.0.0-alpha as we want to ensure we support older versions of React Native and React.
We are looking into better warning messaging or maybe removing the Peer Dependency warning for React altogether.
If you still continue facing issues, could you write into integrations#branch.io and we will help you debug the issue further.
I upgraded to react-native 0.16.0-rc, ran npm install, then ran react-native upgrade. When trying to launch the iOS app in a simulator (or device, doesn't matter) I get the error:
[error][tid:com.facebook.React.RCTExceptionsManagerQueue] Unhandled JS Exception: babelHelpers.interopRequireDefault is not a function. (In 'babelHelpers.interopRequireDefault(_reactNative)', 'babelHelpers.interopRequireDefault' is undefined)
I've just about run out of ideas here. Is there something I need to add to my xcode project maybe? Merging the latest react-native templates into mine was a nightmare so maybe something got messed up there.
This problem is discussed in this Github issue and fixed by this commit. You can apply this patch temporarily until it is merged into the project with the version 0.16.