React-native: I am getting an error after upgrading the react-native to the latest version(Could not find the following native modules)

Created on 22 Nov 2019  路  7Comments  路  Source: facebook/react-native

I done the following to update all npm and react-ative latest version.

For npm, I ran npm update

To update the react-native, I have changed the version in package.json and ran npm install. It updated the react-native version

After this, I have run react-native run-ios it shows all my packages are manually linked and you need to unlink all packages.

Also, can anyone clarify the react-native-config.js file is mandatory for this after updating to the latest react-native.

Always I open the app.Xcodeproj but the below shows I need to open app.xcworkspace. Can anyone clarify this?



warn The following packages use deprecated "rnpm" config that will stop working from next release:
  - react-native-fetch-blob: https://github.com/wkh237/react-native-fetch-blob#readme
  - react-native-orientation: https://github.com/yamill/react-native-orientation#readme
  - rn-fetch-blob: https://github.com/joltup/rn-fetch-blob#readme
Please notify their maintainers about it. You can find more details at https://github.com/react-native-community/cli/blob/master/docs/configuration.md#migration-guide.
error Could not find the following native modules: BugsnagReactNative, react-native-camera, react-native-cookies, react-native-fast-image, react-native-fetch-blob, RNFS, RNGestureHandler, RNImageCropPicker, react-native-image-picker, RNImageRotate, BVLinearGradient, react-native-orientation, RNShare, RNSVG, RNVectorIcons, RNViewShot, react-native-webview, rn-fetch-blob. Did you forget to run "pod install" ?
info Found Xcode workspace "Fashion.xcworkspace"
Bug Ran Commands

Most helpful comment

Follow this upgrade helper and make sure you add this to your Podfile:

require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

....

use_native_modules!

Then run pod install. This solved my issue.

All 7 comments

Can you run react-native info and edit your issue to include these results under the React Native version: section?

If you believe this information is irrelevant to the reported issue, you may write [skip envinfo] alongside an explanation in your Environment: section.

react-native info

```
react-native info
warn The following packages use deprecated "rnpm" config that will stop working from next release:

  • react-native-fetch-blob: https://github.com/wkh237/react-native-fetch-blob#readme
  • react-native-orientation: https://github.com/yamill/react-native-orientation#readme
  • rn-fetch-blob: https://github.com/joltup/rn-fetch-blob#readme
    Please notify their maintainers about it. You can find more details at https://github.com/react-native-community/cli/blob/master/docs/configuration.md#migration-guide.
    info Fetching system and libraries information...
    System:
    OS: macOS Mojave 10.14.2
    Binaries:
    Node: 9.4.0 - ~/.nvm/versions/node/v9.4.0/bin/node
    npm: 5.6.0 - ~/.nvm/versions/node/v9.4.0/bin/npm
    SDKs:
    iOS SDK:
    Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
    IDEs:
    Xcode: 10.1/10B61 - /usr/bin/xcodebuild
    npmPackages:
    react: 16.8.1 => 16.8.1
    react-native: ^0.61.4 => 0.61.4
    npmGlobalPackages:
    react-native-cli: 2.0.1
    react-native-git-upgrade: 0.2.7
    ```

Hey nihp ,

First of all upgrading like that will only upgrade react-native core files. But your IOS / Android Files won't be in sync with the latest updates.

You can either do that manually by using : upgrade-helper

or you can also automate most of that using the upgrade command in cli : react-native upgrade /

Hope this helps !

react-native upgrade not works for me. So I have changed the package.json and make it to upgrade.

Getting below errors:

error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening Fashion.xcworkspace. Run CLI with --verbose flag for more details.

error Could not find the following native modules: BugsnagReactNative, react-native-cookies, react-native-fast-image, react-native-fetch-blob, react-native-image-picker, react-native-orientation, RNSVG, rn-fetch-blob. Did you forget to run "pod install" ?

Follow this upgrade helper and make sure you add this to your Podfile:

require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

....

use_native_modules!

Then run pod install. This solved my issue.

I am closing this issue because it does not contain the necessary environment info, and there has been no followup in a while.

If you found this thread after encountering the same issue in the latest release, please feel free to create a new issue with up-to-date information by clicking here.

Follow this upgrade helper and make sure you add this to your Podfile:

require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

....

use_native_modules!

Then run pod install. This solved my issue.

running pod install create a dependency issue
144 duplicate symbols for architecture x86_64

Was this page helpful?
0 / 5 - 0 ratings