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
赞
收藏 0
回答 1
相关问题
HarmonyOS entry module中引用hsp报错cannot find record...
2980浏览 • 1回复 待解决
HarmonyOS Cannot set property when setter is undefined
879浏览 • 1回复 待解决
HarmonyOS Cannot find name 'ESObject'
1050浏览 • 0回复 待解决
Cannot find module '@ohos.application.Ability' or its corresponding type declarations.
14266浏览 • 1回复 待解决
hvigor ERROR: Error, Cannot find module '@ohos/hvigor-ohos-plugin/src/utils/log/log-adaptor'
477浏览 • 0回复 待解决
getContext 提示错误,Cannot find name 'getContext'
1819浏览 • 1回复 待解决
HarmonyOS 调试报错TypeError:Cannot read property xxx of undefined
2449浏览 • 1回复 待解决
DevEco Studio 升级报错 Cannot find JAR 'jaxb-impl-2.3.2.jar' required by module 'gradle-resources-s3
8665浏览 • 2回复 已解决
DevEco Studio出现Gradle sync failed: Cannot find JAR错误
6245浏览 • 1回复 待解决
HarmonyOS 报错Cannot find name 'backgroundColor'.
605浏览 • 1回复 待解决
HarmonyOS 如何实现一个ViewModelFactory,当前会报错cannot find name 'T'
649浏览 • 0回复 待解决
在TS文件里使用Concurrent注解报红,提示Cannot find name 'Concurrent'
1898浏览 • 1回复 待解决
HarmonyOS route怎么销毁page
2029浏览 • 1回复 待解决
定位授权配置中ability和when的作用范围?
2691浏览 • 1回复 待解决
调试模式下 报Cause: Can't find any .so file in current module Solution
2688浏览 • 1回复 待解决
HarmonyOS BLECharacteristic类型的全局变量可选变量如何设置,提示Cannot find name 'BLECharacteristic'.应该导入什么包
604浏览 • 1回复 待解决
将一个文件,从原文件下移出后,Cannot find name 'CustomDialogExample',无法引用
872浏览 • 1回复 待解决
HarmonyOS map["xxx"] 和 map.set("xxx") 不等价
735浏览 • 1回复 待解决
HarmonyOS 企业内APP 安装DeepLink格式:store://enterprise/manifest?url=https://xxx.xxx/xxx.json5问题
704浏览 • 1回复 待解决
HarmonyOS 关于Navigation中,route_map.json的配置问题
2086浏览 • 1回复 待解决
HarmonyOS navPathStack.removeByName(xxx)
773浏览 • 1回复 待解决
HarmonyOS SourceTool.xxx值为undefined
832浏览 • 1回复 待解决
文件被混淆了,参考文档:
https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/source-obfuscation-V5