After react-native upgrade, iOS bundle fails
NickName:projuljustin Ask DateTime:2019-12-12T11:07:36

After react-native upgrade, iOS bundle fails

I recently updated to react-native 0.61.5 from 0.59.4, but now I'm getting this error:

bundling failed: node_modules/react-native/Libraries/react-native/react-native-implementation.js: Cannot read property 'bindings' of null

package.json: https://gist.github.com/projuljustin/cd2a59f905e02d10630f2a802e9665f9

babel.config.js: module.exports = { presets: ['module:metro-react-native-babel-preset'], };

I've gone through https://react-native-community.github.io/upgrade-helper/?from=0.59.4&to=0.61.5 and fixed everything.

Running the app worked before the react-native upgrade.

I saw similar posts that mentioned the issue was caused by babel-preset-react-native, but I've since taken that out. Other posts mentioned updating babel-preset-react-native to version 5, but it looks like babel-preset-react-native was replaced by metro-react-native-babel-preset. I can't find anything pointing to why this wouldn't work.

I've checked all my dependencies, tried cleaning the project and re-installing node_modules and Pods, but I'm still getting this error.

Copyright Notice:Content Author:「projuljustin」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/59297149/after-react-native-upgrade-ios-bundle-fails

More about “After react-native upgrade, iOS bundle fails” related questions

After react-native upgrade, iOS bundle fails

I recently updated to react-native 0.61.5 from 0.59.4, but now I'm getting this error: bundling failed: node_modules/react-native/Libraries/react-native/react-native-implementation.js: Cannot read

Show Detail

React-Native upgrade for iOS: options

I am planning to upgrade the react-native from 0.51 to 0.62 for the iOS platform. Typically what is the duration it takes for an upgrade? Can I carry out a staggered upgrade? Just to upgrade the r...

Show Detail

react-native simulator stuck after BUNDLE Loading

This was loading. Stopped the simulator, rebooted computer and now it builds and gets stuck after the BUNDLE is done. Loading dependency graph, done. BUNDLE [ios, dev] ./index.js ▓▓▓▓▓▓▓%

Show Detail

react-native - linking fails after upgrade : ld: symbol(s) not found for architecture x86_64

i recently upgraded the react-native version with react-native upgrade and followed all steps without any errors so far. Now when i want to build the ios Version i get following Error: ❌ ld: sy...

Show Detail

React-Native Offline Bundle - Images not showing

I have a React-Native app I'm trying to deploy in Release mode to my phone. I can bundle the app to the phone. Database, Video and audio assets are all in there but no images are showing in the UI....

Show Detail

react native ios build succeeds but path to app bundle is wrong

When I run react-native run-ios build succeeds and created build folder under ios. But after build, when installation starts, get the below error. The project runs successfully when I run it through

Show Detail

iOS App Version Upgrade - Does Bundle content get deleted?

Looking for some concrete detail on how version to version upgrade works in iOS, specifically what happens to bundle content that has been removed in the new version? For example, if version 1.0 ha...

Show Detail

Best way to upgrade react-native project

I have a question about upgrading react-native version. We have some choices to upgrade but I don't know differences. 1) react-native upgrade 2) react-native-git-upgrade 3) npm install react-nat...

Show Detail

Upgrading React-Native iOS can't find 'Bundle React Native Code And Images' in Xcode

I have recently upgraded my React-Native version from 0.61.0 to 0.61.2. I use Upgrade Helper. Everything is working fine in android and ios simulator but when i give a release build in ios, it says...

Show Detail

Running react-native app on iOS device using offline bundle

The official React Native documentation to run app on iOS device using offline bundle says Open ios/YourApp/AppDelegate.m Uncomment the line, jsCodeLocation = [[NSBundle mainBundle] ... Using lat...

Show Detail