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
赞
收藏 0
回答 1
待解决
相关问题
HarmonyOS entry module中引用hsp报错cannot find record...
3707浏览 • 1回复 待解决
HarmonyOS Cannot set property when setter is undefined
1227浏览 • 1回复 待解决
HarmonyOS Cannot find name 'ESObject'
1435浏览 • 1回复 待解决
Cannot find module '@ohos.application.Ability' or its corresponding type declarations.
16079浏览 • 1回复 待解决
HarmonyOS 调试报错TypeError:Cannot read property xxx of undefined
3549浏览 • 1回复 待解决
getContext 提示错误,Cannot find name 'getContext'
2193浏览 • 1回复 待解决
hvigor ERROR: Error, Cannot find module '@ohos/hvigor-ohos-plugin/src/utils/log/log-adaptor'
1269浏览 • 0回复 待解决
DevEco Studio出现Gradle sync failed: Cannot find JAR错误
6550浏览 • 1回复 待解决
DevEco Studio 升级报错 Cannot find JAR 'jaxb-impl-2.3.2.jar' required by module 'gradle-resources-s3
8906浏览 • 2回复 已解决
HarmonyOS 报错Cannot find name 'backgroundColor'.
916浏览 • 1回复 待解决
HarmonyOS 如何实现一个ViewModelFactory,当前会报错cannot find name 'T'
869浏览 • 1回复 待解决
为什么用$$已经实现双向绑定效果还是报Cannot find name '$$this'. <ArkTSCheck>
1664浏览 • 0回复 待解决
在TS文件里使用Concurrent注解报红,提示Cannot find name 'Concurrent'
2111浏览 • 1回复 待解决
HarmonyOS BLECharacteristic类型的全局变量可选变量如何设置,提示Cannot find name 'BLECharacteristic'.应该导入什么包
816浏览 • 1回复 待解决
调试模式下 报Cause: Can't find any .so file in current module Solution
2891浏览 • 1回复 待解决
HarmonyOS route怎么销毁page
2766浏览 • 1回复 待解决
将一个文件,从原文件下移出后,Cannot find name 'CustomDialogExample',无法引用
1099浏览 • 1回复 待解决
HarmonyOS map["xxx"] 和 map.set("xxx") 不等价
926浏览 • 1回复 待解决
定位授权配置中ability和when的作用范围?
3085浏览 • 1回复 待解决
HarmonyOS 企业内APP 安装DeepLink格式:store://enterprise/manifest?url=https://xxx.xxx/xxx.json5问题
1995浏览 • 1回复 待解决
HarmonyOS 关于Navigation中,route_map.json的配置问题
2989浏览 • 1回复 待解决
HarmonyOS navPathStack.removeByName(xxx)
969浏览 • 1回复 待解决
文件被混淆了,参考文档:
https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/source-obfuscation-V5