question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot see red error screen in case of javascript errors

See original GitHub issue

I am in the processing of migrating our app from v0.59.9 to v0.63.3. While i got other things migrated successfully, i noticed that javascript (non-fatal) errors that used to be thrown in a red screen earlier are not reported the same way. For basic javascript errors like undefined is not a method, the app crashes and then i have to check adb log cat and then de-obfuscate them using metro-symbolicate to see what the error is. I am tried running the app with --variant=debug without success. Is there a better way to see these errors without this cumbersome process?

https://i.stack.imgur.com/QhTSw.png

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kaushikwavhalcommented, Nov 24, 2020

This worked after removing import com.facebook.react.BuildConfig and adding this android:usesCleartextTraffic="true" to the manifest file. Never been more happy to see an error screen.

0reactions
kaushikwavhalcommented, Nov 24, 2020

i was able to get the developer menu working by removing this from MainApplication.java: import com.facebook.react.BuildConfig.

Re: https://github.com/facebook/react-native/issues/26417

Read more comments on GitHub >

github_iconTop Results From Across the Web

A Definitive Guide to Handling Errors in JavaScript - Kinsta
Getting tripped up by errors in your JavaScript? We'll show you how to tame those errors so you can get back to developing...
Read more >
Fix JavaScript errors that are reported in the Console
Open the demo webpage Network error reported in Console in a new window or tab. · Right-click anywhere in the webpage and then...
Read more >
What went wrong? Troubleshooting JavaScript - MDN Web Docs
A red "x" to indicate that this is an error. An error message to indicate what's gone wrong: "TypeError: guessSubmit.addeventListener is not a ......
Read more >
Add “red box” on any JavaScript errors in development #783
I want to enable “red box” on any JavaScript error in development ... The full-screen message can be dismissed by pressing “Escape” in...
Read more >
google chrome js console show thin red line, no printed error ...
In my case there were multiple errors happening in a forEach loop. Looks like Chrome is trying to protect from blowing up the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found