Cannot see red error screen in case of javascript errors
See original GitHub issueI 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?
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This worked after removing
import com.facebook.react.BuildConfig
and adding thisandroid:usesCleartextTraffic="true"
to the manifest file. Never been more happy to see an error screen.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