-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Requiring module 'NativeModules' by name - arguments[0].indexOf is undefined #14364
Comments
This issue looks like a question that would be best asked on StackOverflow. StackOverflow is amazing for Q&A: it has a reputation system, voting, the ability to mark a question as answered. Because of the reputation system it is likely the community will see and answer your question there. This also helps us use the GitHub bug tracker for bugs only. Will close this as this is really a question that should be asked on StackOverflow. |
Thanks, I'm active on SO. I'll post there. |
Hi @ben-snaize . |
@IrinaCodixis For our production code, removing all calls to |
FYI, it's probably because of this module: https://github.com/jhen0409/rn-host-detect/blob/master/index.js#L44 |
Turns out |
Hi,
Seeing an odd issue in RN 0.42 (since upgrading from 0.38, I believe).
I can't replicate the crash locally in debug or release which makes things difficult, but on both iOS and Android I'm seeing the following logged from Crashlytics. Both apps run through flawlessly locally, on device and via TestFlight / Play Store beta, yet something like like 1 in 20 users of the live Apps are crashing due to this:
RCTFatalException: Unhandled JS Exception: arguments[0].indexOf is not a function. (In 'arguments[0].indexOf("Requiring module 'NativeModules' by name")', 'arguments[0].indexOf' is undefined)
This seems to be stemming from here in
index.[os].bundle.js
wherearguments[0].indexOf
is called.Does anyone have an idea of what could the cause of this? Why would
arguments[0].indexOf
be undefined at this stage?I know the crash is very context dependent but some sort of pointer would be of great help.
The text was updated successfully, but these errors were encountered: