Failed to resolve OhmUrl. Failed to get a resolved OhmUrl for hvigor_ignore_xxxxx imported by XXX.
The useNormalizedOHMUrl settings of packages xxx and the project useNormalizedOHMUrl: xxx do not match.
ohpm ERROR: local dependency xxx found in "oh-package.json5" does not match the actual name xxx of its oh-package.json5.
ohpm ERROR: Install failed, detail: There are some dependency names that are inconsistent with the actual package names.
ERROR: 00309001 ArkTS Compiler Error.
Error Message: Cannot import files outside of the current module using relative paths.
Bytecode HARs:xxx库名 not supported when useNormalizedOHMUrl is not true.
在工程级build-profile.json5文件中,strictMode用于定义严格模式,含有useNormalizedOHMUrl、caseSensitiveCheck等配置字段。
参考官方文档:编译报错“Failed to get a resolved OhmUrl by filepath xx”中的场景五。
参考官方文档:编译报错“The useNormalizedOHMUrl settings of packages xxx and the project useNormalizedOHMUrl: xxx do not match”。
从DevEco Studio NEXT Beta1(5.0.3.800)版本开始,当useNormalizedOHMUrl设置为true时,不允许通过相对路径跨模块或绝对路径导入文件,oh-package.json5中依赖的包使用的别名需要和依赖包的oh-package.json5的name保持一致,具体的适配指导请参考变更说明。
使用集成态HSP和字节码HAR需使用标准化的OHMUrl格式,需要将useNormalizedOHMUrl配置为true。