Repository navigation
Description
Description
Upgrade from 0.68.1 to 0.70.0.
Builds fine in Xcode.
Launches Simulator.
Splash screen for app appears.
and then it crashes with the error:
ERROR Invariant Violation: Failed to call into JavaScript module method AppRegistry.runApplication(). Module has not been registered as callable. Registered callable JavaScript modules (n = 11): Systrace, JSTimers, HeapCapture, SamplingProfiler, RCTLog, RCTDeviceEventEmitter, RCTNativeAppEventEmitter, GlobalPerformanceLogger, JSDevSupportModule, HMRClient, RCTEventEmitter.
A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native., js engine: hermes
Version
0.70.0
Output of npx react-native info
ystem:
OS: macOS 12.3.1
CPU: (4) x64 Intel(R) Core(TM) i7-4578U CPU @ 3.00GHz
Memory: 1.20 GB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 16.15.0 - /usr/local/bin/node
Yarn: Not Found
npm: 8.5.5 - /usr/local/bin/npm
Watchman: 2022.03.21.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
Languages:
Java: Not Found
npmPackages:
@react-native-community/cli: Not Found
react: Not Found
react-native: Not Found
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
Upgrade from 0.68.1 to 0.70.0.
Builds fine in Xcode.
Launches Simulator.
Splash screen for app appears.
and then it crashes with the error:
ERROR Invariant Violation: Failed to call into JavaScript module method AppRegistry.runApplication(). Module has not been registered as callable. Registered callable JavaScript modules (n = 11): Systrace, JSTimers, HeapCapture, SamplingProfiler, RCTLog, RCTDeviceEventEmitter, RCTNativeAppEventEmitter, GlobalPerformanceLogger, JSDevSupportModule, HMRClient, RCTEventEmitter.
A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native., js engine: hermes

Activity
spearghost commentedon Sep 15, 2022
i have the same issue
mmgmail commentedon Sep 15, 2022
i have the same issue too
sahillamba123 commentedon Sep 15, 2022
+1
JevFR commentedon Sep 15, 2022
Same here too
JevFR commentedon Sep 15, 2022
I succeed to avoid this error. In my case, it was due to the react-native-gesture-handler that changed.
Previously we needed to import it at the top of the root file, now we must do that in App.js instead
Hope it will help
HZHCoder1990 commentedon Sep 15, 2022
i have the same issue too
optitrac commentedon Sep 15, 2022
Also having this issue
efstathiosntonas commentedon Sep 16, 2022
In my case it was
ViewPropTypesfromreact-native-camera, I've applied this patch:and the error went away, note that I hade to manually install:
yarn add deprecated-react-native-prop-types.The error you have above is incomplete, you're missing this important part:
TypeError: undefined is not an object (evaluating '_reactnative.Text.propTypes.style')jyotiprakash111 commentedon Sep 17, 2022
Not worked for me.
jyotiprakash111 commentedon Sep 17, 2022
Any update on the same ? react-native-bot
optitrac commentedon Sep 18, 2022
I found that, similar to the OP, I had an error listed above the 'Invariant Violation: Failed to call into JavaScript module method AppRegistry.runApplication().'. (In my case, the error was "Invariant Violation: ViewPropTypes has been removed from React Native", which was caused by two libraries in the node_modules folder). When I fixed that error (by applying patches to those libraries), the two 'AppRegistry' errors disappeared as well.
vickyhrithik commentedon Sep 19, 2022
any update on the issues?
putuoka commentedon Sep 20, 2022
Same issue here after upgrading all of dependencies my old project with yarn
yarn yarn-upgrade-allmy package.json:
239 remaining items
deivyrene commentedon Oct 20, 2023
@steventnorris
Did the error occur when upgrading to RN 0.72.6?
If you come from a version previous to 0.7x.x you must check which dependency is incompatible with the new version of react native.
Applying this setting helped me to visualize which dependencies were causing the error.
Once you fix the errors you can restore the file you edited in node_modules (this change is just to make it more visible what is going wrong)
I hope it helps!
github-actions commentedon Nov 14, 2023
This issue is waiting for author's feedback since 24 days. Please provide the requested feedback or this will be closed in 7 days.
github-actions commentedon Nov 21, 2023
This issue was closed because the author hasn't provided the requested feedback after 7 days.
bigman1208000 commentedon Nov 22, 2023
Hi @efstathiosntonas,
I had the same issue and just followed your instructions.
It really worked for me.
Thank you very much.
Antarpreet commentedon Feb 16, 2024
I faced the same issue when upgrading
Expofrom 49 to 50 andreact-nativefrom0.72.3to0.73.4with the following error:I resolved the issue by searching for
react-nativein thepackage-lock.jsonfile and checking if any dependency had a lower version being used, for example, the following package was using the older0.72.4version than the new version inpackage.jsonfile:I added an
overridesoption to thepackage.jsonfile as follows:Then, I removed
node_modulesandpackage-lock.jsonand re-installed dependencies after adding theoverridessection.This resolved the issue after re-running the metro server and re-installing the app.
This is a temporary solution as we are modifying the sub-dependencies of our dependencies which may lead to unexpected behavior. The correct solution is to upgrade the affected dependency itself.
mdrijwan commentedon Feb 20, 2024
i'm also facing the same issue :(
codekojo commentedon Mar 20, 2024
+1
Sandoval-dev commentedon Mar 26, 2024
expo upgrade worked for me
SailendraRapeti commentedon Apr 23, 2024
SailendraRapeti commentedon Apr 23, 2024
it's not worked for me
tripolskypetr commentedon Jul 30, 2024
Still waiting for 1.0 release without that pretty debugger)
victorsfranco commentedon Sep 18, 2024
Hey everyone! After 3 days, I found a solution for this bug in my case. It was being caused by ViewPropTypes, that dont exist anymore on 'react-native' package. We have to import it from 'deprecated-react-native-prop-types'.
I was was not getting to find what dependency was using this prop, but I found out that ir wasn't found due to a specific VS Code configuration.
You guys should click on this Icon, to disable this option, that hide the term ocurrences on some directories inside node_modules. After clicking on it, you will be able to locate where this prop are being used, and fix the bug, like I did below:
.
.
To persist this change, you can take a look on patch-package repo:
https://github.com/ds300/patch-package