Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade 0.70 RN | Android | E/ReactNativeJS: TypeError: _.default.createNode is not a function. #34945

Open
mantmartini opened this issue Oct 11, 2022 · 6 comments
Labels
Needs: Triage 🔍 Platform: Android Android applications. Type: Upgrade Issue Issues reported from upgrade issue form

Comments

@mantmartini
Copy link

New Version

0.70

Old Version

0.64.2

Build Target(s)

Emulator Android 12 Google Play | x86_64

Output of react-native info

System:
OS: Windows 10 10.0.19044
CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
Memory: 1.04 GB / 31.69 GB
Binaries:
Node: 16.16.0 - C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm: 8.19.2 - ~\AppData\Roaming\npm\npm.CMD
Watchman: Not Found
SDKs:
Android SDK:
API Levels: 23, 28, 29, 30, 31, 33
Build Tools: 29.0.2, 30.0.2, 30.0.3, 31.0.0
System Images: android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom,
android-30 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom, android-31 | Intel x86 Atom_64, android-31 | Google APIs Intel x86 Atom_64, android-31 | Google Play Intel x86 Atom_64
Android NDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: AI-213.7172.25.2113.9014738
Visual Studio: Not Found
Languages:
Java: 11.0.15
npmPackages:
@react-native-community/cli: ^9.0.0 => 9.1.3
react: ^18.1.0 => 18.1.0
react-native: ^0.70.0 => 0.70.0
react-native-windows: Not Found
npmGlobalPackages:
react-native: Not Found

Issue and Reproduction Steps

When I try to build the app and run it in the android emulator, I get the following error in the logcat:

E/ReactNativeJS: TypeError: .default.createNode is not a function. (In '.default.createNode(this.__nodeID,Object.assign({},this.__nodeConfig))', '_.default.createNode' is undefined)

I would appreciate any help. Thanks!

Error:

2022-10-11 11:54:37.042 11329-11454/com.restlessnetwork E/ReactNativeJS: TypeError: .default.createNode is not a function. (In '.default.createNode(this.__nodeID,Object.assign({},this.__nodeConfig))', '.default.createNode' is undefined)
2022-10-11 11:54:37.050 11329-11454/com.restlessnetwork E/ReactNativeJS: 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.
2022-10-11 11:54:37.056 11329-11455/com.restlessnetwork E/unknown:ReactNative: Exception in native call
com.facebook.react.common.JavascriptException: TypeError: .default.createNode is not a function. (In '.default.createNode(this.__nodeID,Object.assign({},this.__nodeConfig))', '
.default.createNode' is undefined), stack:
value@1775:2148
value@1775:1366
_@1787:1448
@1787:163
@1785:211
@1781:896
h@2:1707
@1776:195
h@2:1707
@1774:278
h@2:1707
@1769:8018
h@2:1707
@1768:988
h@2:1707
@1767:571
h@2:1707
@1741:386
h@2:1707
@1739:602
h@2:1707
@1738:1230
h@2:1707
@1737:126
h@2:1707
@383:641
h@2:1707
@382:167
h@2:1707
@6:57
h@2:1707
d@2:1080
global code@3376:3

    at com.facebook.react.modules.core.ExceptionsManagerModule.reportException(ExceptionsManagerModule.java:72)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
    at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:188)
    at com.facebook.jni.NativeRunnable.run(Native Method)
    at android.os.Handler.handleCallback(Handler.java:938)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
    at android.os.Looper.loopOnce(Looper.java:201)
    at android.os.Looper.loop(Looper.java:288)
    at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:228)
    at java.lang.Thread.run(Thread.java:920)

2022-10-11 11:54:37.060 11329-11455/com.restlessnetwork E/unknown:ReactNative: Exception in native call
com.facebook.react.common.JavascriptException: 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., stack:
@29:289
value@53:3310
@53:759
value@53:2583
value@53:731
value@-1

    at com.facebook.react.modules.core.ExceptionsManagerModule.reportException(ExceptionsManagerModule.java:72)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
    at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:188)
    at com.facebook.jni.NativeRunnable.run(Native Method)
    at android.os.Handler.handleCallback(Handler.java:938)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
    at android.os.Looper.loopOnce(Looper.java:201)
    at android.os.Looper.loop(Looper.java:288)
    at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:228)
    at java.lang.Thread.run(Thread.java:920)
@mantmartini mantmartini added Needs: Triage 🔍 Type: Upgrade Issue Issues reported from upgrade issue form labels Oct 11, 2022
@github-actions github-actions bot added the Version: unspecified No version information could be extracted label Oct 11, 2022
@react-native-bot react-native-bot added the Platform: Android Android applications. label Oct 11, 2022
@PedroHSodre
Copy link

same issue, any updates ?

@Yandamuri
Copy link

facing same error with

"react": "18.2.0",
 "react-native": "0.71.8",

@Quintis1212
Copy link

same issue

@Chimaa123
Copy link

Chimaa123 commented Aug 29, 2023

same issue with
"react": "18.2.0", "react-native": "0.72.4 "

@Shizerq
Copy link

Shizerq commented Sep 29, 2023

Found fix that worked for me after updating to 0.72.5

#38535 (comment)

@percyavaur
Copy link

Same here, any solutions?

@cortinico cortinico removed the Version: unspecified No version information could be extracted label Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Triage 🔍 Platform: Android Android applications. Type: Upgrade Issue Issues reported from upgrade issue form
Projects
None yet
Development

No branches or pull requests

9 participants