react-native icon indicating copy to clipboard operation
react-native copied to clipboard

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

Open mantmartini opened this issue 3 years ago • 7 comments

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 avatar Oct 11 '22 15:10 mantmartini

same issue, any updates ?

PedroHSodre avatar Mar 29 '23 17:03 PedroHSodre

facing same error with

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

Yandamuri avatar Jul 13 '23 11:07 Yandamuri

same issue

Quintis1212 avatar Aug 24 '23 08:08 Quintis1212

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

Chimaa123 avatar Aug 29 '23 08:08 Chimaa123

Found fix that worked for me after updating to 0.72.5

https://github.com/facebook/react-native/issues/38535#issuecomment-1740839067

msynowski avatar Sep 29 '23 12:09 msynowski

Same here, any solutions?

percyavaur avatar Oct 24 '23 22:10 percyavaur

Same issue with react native 0.70.6

OxamaHxn avatar May 17 '24 07:05 OxamaHxn

Closing as this issue is related to a version of React Native that we're not supporting anymore (0.70.x). I'd suggest you seek support on StackOverflow or other forums

cortinico avatar May 20 '24 10:05 cortinico