鸿蒙报错速查:arkts-strict-typing 初始化类型不匹配 + 成员忘初始化,根因 + 真解法
报错原文
三个高频报错扎堆:
ERROR: 10505001 ArkTS Compiler Error
Error Message: Type undefined is not assignable to type number. At File: xxx.ets:N:NError Message: Property name has no initializer and is not definitely assigned in the constructor…
2026/7/22 19:36:49