Closed theobouwman closed 11 months ago
Any update on this? I have the problem... :)
No..
Maybe @mikehardy can help here :)
@mikehardy do you know how to fix this?
There are some related issues if you search for javascript symbolocation - you are getting stacks and they are the stack into your compiled bundle, you need to maintain a tag in your version control that correlates to the build so you can generate the symbol map tables again to dereference into the original code. Firebase cannot do this for you as it is unaware of your toolchain (typescript, metro bundler or other options etc) and doesn't have the option to upload symbol tables.
@mikehardy is there a simple way to do this?
@mikehardy is there a simple way to do this?
Sadly, I'm not aware of one @theobouwman - the general idea (to make it ... "easy") is to get your local toolchains sorted well, document exactly how to build sourcemaps at each transform step (e.g. typescript->javascript, then javascript->release bundle) so you can do it with a single command, then use one of the available javascript packages that decodes stack traces when provided a trace and sourcemaps, so you can then feed the firebase crashlytics trace into the script + the sourcemaps as input and out pops the original source lines.
It is possible, but not awesome. I will freely admit that in my personal development for my own projects I typically just look at the error message / topline, look at the log breadcrumbs which I've placed semi-regularly in the code, and make a best guess as to what was undefined (or whatever the problems was) and why by visual inspection of the source code. That's an imprecise + intuitive process but I've typically been able to reproduce errors within a few minutes that way and then I go on my merry way without messing with the source maps.
Maybe not the answer you're hoping for but it's what I've got. I hope it helps
@mikehardy thanks. I noticed that these errors are mainly unhandled promises etc. and no fatal crashes which is good to know.
Hello 👋, to help manage issues we automatically close stale issues.
This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?
This issue will be closed in 15 days if no further activity occurs.
Thank you for your contributions.
Issue
I am getting a non-fatal error when the background job is running. But I still do not see correct JS traces. With the provided
firebase.json
I should be getting detailed JS traces right? I used the recommended settings from the articles that was linked on the documentation https://invertase.io/blog/react-native-firebase-crashlytics-configurationpackage.json
:firebase.json
for react-native-firebase v6: