question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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"

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

31reactions
kimobriancommented, Dec 12, 2019

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.

1reaction
nihpcommented, Nov 25, 2019

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" ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not find the following native modules after upgrading ...
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,...
Read more >
Error Could Not Find The Following Native Modules - Medium
Ever encountered the above error when building a project? Fret not. Solution —. Run these commands: cd ios pod install. You should be...
Read more >
react-native-ble-plx. Did you forget to run "pod install" ?" - Reddit
Need help with "error Could not find the following native modules: react-native-ble-plx. Did you forget to run "pod install" ?" I have run...
Read more >
iOS Native Modules
To get started, open up the iOS project within your React Native application in Xcode. You can find your iOS project here within...
Read more >
Troubleshooting | React Navigation
If upgrading the packages don't help, you can also try deleting your node_modules as well as lock the file and reinstall your dependencies....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found