如何解决编译报错“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/dc/v3/3d2Vbn9hSBS-TACBWX0GBA/zh-cn_image_0000002654837917.png?HW-CC-KV=V1&HW-CC-Date=20260709T134357Z&HW-CC-Expire=86400&HW-CC-Sign=51F2836CB25F80D9F3A56FACC48931706EDF4FECC2A95673068A9FA3A21E5278)

**解决方案**

修改代码：

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