Runtime error when starting on android
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)
hey, thanks, are you trying to run it on windows?
Yes, on Windows 10 using an emulator
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
OK, it works after disabling hermes.
Same issue on Ubuntu with emulator. It works after disabling Hermes engine.
Hit the same issue. What I tried:
- Running with
gradlew installDebug --stacktraceto get more information about the error. But it shows the same text. - 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.
probably bumping RN version could help