如题:HarmonyOS DevEco Studio Previewer 报错This module is referencing one or more HSPs and cannot be previewed. To preview components in an HSP, switch to the HSP first.?
如题:HarmonyOS DevEco Studio Previewer 报错This module is referencing one or more HSPs and cannot be previewed. To preview components in an HSP, switch to the HSP first.?
1 回答1.1k 阅读✓ 已解决
1 回答1.4k 阅读
1 回答1.2k 阅读
1 回答1.1k 阅读
1 回答1.1k 阅读
1 回答992 阅读
1 回答972 阅读
1 回答1.7k 阅读
1 回答662 阅读✓ 已解决
1 回答740 阅读
1 回答944 阅读
1 回答977 阅读
IDE配套的预览器新特性是预览不支持引用HSP。引用了HSP的模块不支持预览,请直接在HSP内预览,此点已在官方文档(https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/ide-previewer-arkts-js-0000001693564010-V5)已有说明 。
若开发需要预览包内的资源页面开发阶段可采用har模块替代,开发完成后换回hsp,将HSP(动态共享包)转为HAR(静态共享包)参考:https://developer.huawei.com/consumer/cn/doc/harmonyos-faqs-V5/faq-project-management-V5\#section1037118144114