HarmonyOS [ecmascript] When the route jump, Cannot find module 'XXX'

使用navigation系统路由表导航+默认混淆规则,导致页面无法跳转

操作步骤:

1、使用Navigation系统路由表

2、配置默认混淆规则

-enable-property-obfuscation
-enable-toplevel-obfuscation
-enable-filename-obfuscation
-enable-export-obfuscation

3、使用release模式

HarmonyOS
2025-01-09 15:05:36
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
aquaa

文件被混淆了,参考文档:

https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/source-obfuscation-V5

-enable-property-obfuscation
-enable-toplevel-obfuscation
-enable-filename-obfuscation
-enable-export-obfuscation
-keep-file-name
PageOne
分享
微博
QQ
微信
回复
2025-01-09 17:38:42
相关问题
HarmonyOS Cannot find name 'ESObject'
498浏览 • 0回复 待解决
HarmonyOS route怎么销毁page
1538浏览 • 1回复 待解决
HarmonyOS navPathStack.removeByName(xxx)
452浏览 • 1回复 待解决