Can't set other options in init
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- typescript
- 领域
- mobile
调研方向
从 src/sentry/wrapper.android.ts 第 385 行附近开始,跟踪 enableTracing 在 init 选项中的处理方式。使用所示的 Sentry.init 配置重现该问题,并验证布尔选项不再产生 Android 转换错误。
由索引模型根据 Issue 内容生成。
描述
When setting other options in the init, the code fails with:
JS: CONSOLE ERROR: Error starting Sentry Error: Cannot convert boolean to Ljava/lang/Boolean; at index 0 Error: Cannot convert boolean to Ljava/lang/Boolean; at index 0
JS: at file: src/webpack:/MobileApp/node_modules/@nativescript-community/sentry/wrapper.android.js:346:55
For example in the following code:
Sentry.init({
dsn: "dsnhere",
enableAutoPerformanceTracking: true,
enableTracing: true,
tracesSampleRate: 1,
});
The error relates to the following line: https://github.com/nativescript-community/sentry/blob/master/src/sentry/wrapper.android.ts#L385
Perhaps a case for booleans need to be added as well?
Edit: looks like it's specifically enableTracing.
- 主要语言
- TypeScript
- 星标
- 18
- 派生
- 12
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nativescript-community/sentry 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 45/100
nativescript-community/sentry#29 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 25/100
nativescript-community/sentry#23 · 8 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
-
难度 4/5 3-5 天 新手友好度 20/100
nativescript-community/sentry#13 · 4 条评论 ·
-
难度 3/5 1-2 天 新手友好度 25/100
nativescript-community/sentry#11 · 1 条评论 ·
查看 nativescript-community/sentry 的全部 Issue
相似的 Issue
-
[Bug]: Device screenshot fails with 500 on iPhone Duo (Xcode 27.2): serve-sim calls simctl without --display可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 66/100
pingdotgg/t3code#24900 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
inu-appcenter/UNIDorm-web#411 ·
维护者通常 1 天内回复
-
🐛 bug
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
ranxianglei/billion-context#4720 ·
维护者通常 1 天内回复
-
area:arcade game p3-medium ready-for-agent type:bug
难度 2/5 1-3 小时 新手友好度 82/100
fderuiter/deruiter.dev#2840 ·
维护者通常 1 天内回复