react-native icon indicating copy to clipboard operation
react-native copied to clipboard

[Android] App doesn't load unless Chrome Debugger is active

Open madwed opened this issue 11 years ago • 3 comments

My app just hangs on the background indefinitely after it finishes building. When I open Chrome Debugger the app loads with no issues. Using react-native 0.14.2. Pretty stumped as to how to troubleshoot this.

Here is what's going on in the packager when the debugger isn't running.

[1:37:28 PM] <START> request:/index.android.bundle?platform=android&dev=true
[1:37:28 PM] <END>   request:/index.android.bundle?platform=android&dev=true (21ms)
::ffff:127.0.0.1 - - [17/Nov/2015:18:37:29 +0000] "GET /flow/ HTTP/1.1" 404 18 "-" "okhttp/2.4.0"

And when it is.

[1:38:36 PM] <START> request:/index.android.bundle?platform=android&dev=true
[1:38:36 PM] <END>   request:/index.android.bundle?platform=android&dev=true (33ms)
::ffff:127.0.0.1 - - [17/Nov/2015:18:38:37 +0000] "GET /flow/ HTTP/1.1" 404 18 "-" "okhttp/2.4.0"

madwed avatar Nov 17 '15 18:11 madwed

Have you tried running adb logcat? I was getting the same issue, and was able to diagnose easily in the logs, for instance mine was caused by defining ref twice on the same component "SyntaxError: Attempted to redefine property 'ref'"

mattds avatar Nov 18 '15 15:11 mattds

Thanks! After running logcat I see that the problem is in the bundle.... Looks like the problem is coming from an external library using Array.from

madwed avatar Nov 18 '15 17:11 madwed

how to solve the issue?

HananeAlSamrout avatar Jun 13 '16 12:06 HananeAlSamrout