HarmonyOS 鸿蒙Next API从9升级到12,报strictPropertyInitialization检查错误
HarmonyOS 鸿蒙Next API从9升级到12,报strictPropertyInitialization检查错误
api从9升级到12,报strictPropertyInitialization 检查错误,
具体报错内容:
Property ‘by_router’ has no initializer and is not definitely assigned in the constructor.
1、请问strictPropertyInitialization 检查能够直接关闭么,如果报错代码都逐行做兼容成本比较高?
2、strictPropertyInitialization 属于ts编译选项,工程配置文件没有配置类似ts编译选项的地方么?
更多关于HarmonyOS 鸿蒙Next API从9升级到12,报strictPropertyInitialization检查错误的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html
1 回复