conduitrn icon indicating copy to clipboard operation
conduitrn copied to clipboard

Runtime error when starting on android

Open markokocic opened this issue 5 years ago • 7 comments

After starting application in Android it fails with the following message:

ReferenceError: Property 'Long' doesn't exist, js engine: hermes

Full log:

$ npx react-native log-android
info Starting logkitty
[11:41:40] D | ReactNative ▶︎ ReactInstanceManager.onJSBundleLoadedFromServer()
                           │ ReactInstanceManager.recreateReactContextInBackground()
                           │ ReactInstanceManager.runCreateReactContextOnNewThread()
                           └ ReactInstanceManager.tearDownReactContext()

[11:41:40] D | ReactNative ▶︎ CatalystInstanceImpl.destroy() start
                           └ CatalystInstanceImpl.destroyV1() start

[11:41:40] D | ReactNative ▶︎ ReactInstanceManager.createReactContext()

[11:41:40] D | ReactNative ▶︎ Initializing React Xplat Bridge.

[11:41:40] D | ReactNative ▶︎ Initializing React Xplat Bridge before initializeBridge

[11:41:40] D | ReactNative ▶︎ CatalystInstanceImpl.destroy() end

[11:41:42] D | ReactNative ▶︎ Initializing React Xplat Bridge after initializeBridge
                           └ CatalystInstanceImpl.runJSBundle()

[11:41:42] D | ReactNative ▶︎ CatalystInstanceImpl.initialize()

[11:41:42] D | ReactNative ▶︎ ReactInstanceManager.attachRootViewToInstance()

[11:41:42] D | ReactNative ▶︎ ReactInstanceManager.attachRootViewToInstance()

[11:41:43] D | ReactNative ▶︎ ReactInstanceManager.createReactContextInBackground()
                           └ ReactInstanceManager.attachRootViewToInstance()

[11:41:46] E | ReactNativeJS ▶︎ ReferenceError: Property 'Long' doesn't exist

[11:41:46] E | ReactNativeJS ▶︎ Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)

[11:41:46] E | ReactNativeJS ▶︎ Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)

markokocic avatar Jun 15 '20 11:06 markokocic

hey, thanks, are you trying to run it on windows?

flexsurfer avatar Jun 15 '20 12:06 flexsurfer

Yes, on Windows 10 using an emulator

markokocic avatar Jun 15 '20 12:06 markokocic

there was an issue in latest RN with hermes, can't find it, but you can disable hermes for now https://github.com/flexsurfer/conduitrn/blob/56aafc6aeff86f462eef1523bcd653d291eed44b/android/app/build.gradle#L81

flexsurfer avatar Jun 15 '20 12:06 flexsurfer

OK, it works after disabling hermes.

markokocic avatar Jun 15 '20 12:06 markokocic

Same issue on Ubuntu with emulator. It works after disabling Hermes engine.

fgui avatar Aug 25 '20 15:08 fgui

Hit the same issue. What I tried:

  1. Running with gradlew installDebug --stacktrace to get more information about the error. But it shows the same text.
  2. Removing all deps.

From (2) it seems this is an error with shadow-cljs or ClojureScript. What's strange is that the production release works correctly.

frankitox avatar Sep 17 '20 01:09 frankitox

probably bumping RN version could help

flexsurfer avatar Sep 17 '20 04:09 flexsurfer