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

Runtime error when starting on android #2

Open
markokocic opened this issue Jun 15, 2020 · 7 comments
Open

Runtime error when starting on android #2

markokocic opened this issue Jun 15, 2020 · 7 comments

Comments

@markokocic
Copy link

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)
@flexsurfer
Copy link
Owner

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

@markokocic
Copy link
Author

Yes, on Windows 10 using an emulator

@flexsurfer
Copy link
Owner

there was an issue in latest RN with hermes, can't find it, but you can disable hermes for now

enableHermes: true, // clean and rebuild if changing

@markokocic
Copy link
Author

OK, it works after disabling hermes.

@fgui
Copy link

fgui commented Aug 25, 2020

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

@frankitox
Copy link

frankitox commented Sep 17, 2020

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.

@flexsurfer
Copy link
Owner

probably bumping RN version could help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants