我想从 react-native 应用程序读取 crashlytics 报告,但在 firebase 控制台中根本不可读。来自 Android 的示例崩溃如下所示:
Non-fatal Exception: io.invertase.firebase.crashlytics.UnhandledPromiseRejection
Invalid RegExp pattern: Parenthesized expression not closed
.RegExp ((native):0:0)
.anonymous (address at index.android.bundle:1:2065589)
.ue (address at index.android.bundle:1:2070284)
.ce (address at index.android.bundle:1:2069288)
.Be (address at index.android.bundle:1:2080135)
我启用了爱马仕,并且我的签名构建 apk使用源映射文件index.android.bundle
以预编译格式 ( ) 生成。我尝试使用 npm 包读取这些文件,但不幸的是它总是产生以下错误:build/generated/assets/react/appName/release/index.android.bundle
build/sourcemaps/react/appName/release/index.android.bundle.map
source-map-explorer
source-map-explorer index.android.bundle index.android.bundle.map
index.android.bundle
Your source map refers to generated column 165922 on line 1, but the source only contains 165920 column(s) on that line.
Check that you are using the correct source map.
- 我可以将源映射上传到 firebase 以使错误在 firebase 控制台中可读吗?
- 如何使用 sourcemap 读取 hermes 捆绑文件?