-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Cannot convert undefined value to object, js engine: hermes #25634
Comments
Anything? |
@xxRockOnxx Try debugging JS in Chrome debugger and enable „Pause on exceptions”. This way you should be able to at least see where the problem originates. It would be good to have a minimal reproducible example to work with. I had the same issue but it turned out that it wasn’t actually Hermes (actually it was Reactotron trying to notify me of subscriptions to an incorrectly configured Redux store). I’m mentioning this because I also though that disabling Hermes fixed the issue, but it was only coincidentally related and stateful. |
That's weird. The error mentioned in the OP is not showing up anymore. I re-enabled the Pretty sure I did not changed anything as I went out of town since I opened this issue and Git status did not show any changes (aside from re-enabling the |
having same error, any idea? |
@hackdie this is probably not a Hermes-related error but rather a normal JS error. The string If debugging in chrome doesn't yield an answer, there is a blunt way of debugging this: There might be something that makes Hermes more susceptible to this issue (which would give the perception of being caused by Hermes), but I don't know the internals, just a thought. |
I just wanted to throw it out there that I know this isn't super helpful, but I'm getting the same issue when using Hermes only. I tried simplifying things down as much as possible, but am currently only seeing this issue:
I simplified things as much as possible, and my App.js is now simply:
and index.android.js is:
I can't see where in there I could be introducing a JS error... any thoughts on what may be causing this or any other debugging? Since it's happening before I can connect to the Debugger it's not an easy one. Disabling Hermes fixes the issue for now... |
It happened when
|
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
Setting
enableHermes
totrue
would causeCannot convert undefined value to object, js engine: hermes
.Confirmed it by setting the value to
false
and rebuilding.React Native version:
System:
OS: Linux 5.0 Antergos Linux undefined
CPU: (8) x64 Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
Memory: 2.91 GB / 7.77 GB
Shell: 5.7.1 - /usr/bin/zsh
Binaries:
Node: 11.14.0 - /usr/bin/node
Yarn: 1.16.0 - /usr/bin/yarn
npm: 6.9.0 - /usr/bin/npm
SDKs:
Android SDK:
API Levels: 28
Build Tools: 28.0.3
IDEs:
Android Studio: 3.3
npmPackages:
react: 16.8.6 => 16.8.6
react-native: 0.60.3 => 0.60.3
Steps To Reproduce
0.60.0
to0.60.3
enableHermes
inapp/build.gradle
./gradlew clean
react-native run-android
Describe what you expected to happen:
Should work just fine as before.
The text was updated successfully, but these errors were encountered: