如何解决编译报错“Indexed access is not supported for fields(arkts-no-props-by-index)”的问题
================================================================================

**问题现象**

动态调用类或接口的字段会导致编译报错：Indexed access is not supported for fields (arkts-no-props-by-index)。

![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/11/v3/wzdRF9GzQ9SocMDQJH6YsQ/zh-cn_image_0000002229604089.png?HW-CC-KV=V1&HW-CC-Date=20260612T074814Z&HW-CC-Expire=86400&HW-CC-Sign=0144653A11390A102551C0528E80E2536EFB34AB380C1BAA89A2852EF38EC66A)

**解决方案**

修改代码：

getValue(breakpoint: string): T {
  return Reflect.get(this.options, breakpoint) as T;
}