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
  • 1.
  • 2.
  • 3.
  • 4.

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
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
分享
微博
QQ
微信
回复
2025-01-09 17:38:42


相关问题
HarmonyOS Cannot find name 'ESObject'
1050浏览 • 0回复 待解决
HarmonyOS route怎么销毁page
2029浏览 • 1回复 待解决
HarmonyOS navPathStack.removeByName(xxx)
773浏览 • 1回复 待解决
HarmonyOS SourceTool.xxx值为undefined
832浏览 • 1回复 待解决