HarmonyOS @yunkss/eftool生成MD5库报错

使用MD5.digest方法编码字符串,需要依赖 “@yunkss/eftool”: “^1.1.6”,依赖后报错:

1 ERROR: ArkTS:ERROR File: /Users/xxx/DevEcoStudioProjects/videosdk_harmony/oh_modules/.ohpm/@yunkss+eftool@1.2.0/oh_modules/@yunkss/eftool/src/main/ets/core/axios/EfClientApi.ets:105:63
Argument of type '{ fileName: string; }' is not assignable to parameter of type 'string | Type'.
Object literal may only specify known properties, but 'fileName' does not exist in type 'Type'. Did you mean to write 'filename'?
  
2 ERROR: ArkTS:ERROR File: /Users/xxx/DevEcoStudioProjects/videosdk_harmony/oh_modules/.ohpm/@yunkss+eftool@1.2.0/oh_modules/@yunkss/eftool/src/main/ets/core/axios/EfClientApi.ets:107:42
Argument of type '{ fileName: string; }' is not assignable to parameter of type 'string | Type'.
Object literal may only specify known properties, but 'fileName' does not exist in type 'Type'. Did you mean to write 'filename'?
  
3 ERROR: ArkTS:ERROR File: /Users/xxx/DevEcoStudioProjects/videosdk_harmony/oh_modules/.ohpm/@yunkss+eftool@1.2.0/oh_modules/@yunkss/eftool/src/main/ets/core/axios/EfClientApi.ets:111:62
Argument of type '{ fileName: string; }' is not assignable to parameter of type 'string | Type'.
Object literal may only specify known properties, but 'fileName' does not exist in type 'Type'. Did you mean to write 'filename'?
  
4 ERROR: ArkTS:ERROR File: /Users/xxx/DevEcoStudioProjects/videosdk_harmony/oh_modules/.ohpm/@yunkss+eftool@1.2.0/oh_modules/@yunkss/eftool/src/main/ets/core/axios/EfClientApi.ets:113:41
Argument of type '{ fileName: string; }' is not assignable to parameter of type 'string | Type'.
Object literal may only specify known properties, but 'fileName' does not exist in type 'Type'. Did you mean to write 'filename'?
  
COMPILE RESULT:FAIL {ERROR:5 WARN:129}
> hvigor ERROR: BUILD FAILED in 22 s 399 ms
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
HarmonyOS
2025-01-10 07:29:38
浏览
收藏 0
回答 1
回答 1
按赞同
/
按时间
superinsect

MD5.digest的入参属性,应该是包含filename,传入的是fileName,不匹配。

分享
微博
QQ
微信
回复
2025-01-10 10:06:46
相关问题
如何通过uuid生成md5、RSA、AES、 DES
2520浏览 • 1回复 待解决
HarmonyOS MD5实现
817浏览 • 1回复 待解决
HarmonyOS MD5签名
866浏览 • 1回复 待解决
HarmonyOS md5进行加密
744浏览 • 1回复 待解决
HarmonyOS MD5加密示例
857浏览 • 1回复 待解决
HarmonyOS 系统的加密怎么使用MD5加密
1180浏览 • 1回复 待解决
HarmonyOS MD5加密相关demo
1080浏览 • 1回复 待解决
HarmonyOS 关于MD5算法的问题
743浏览 • 1回复 待解决
HarmonyOS 密码怎么进行MD5加密
719浏览 • 1回复 待解决
HarmonyOS MD5加密算法demo
921浏览 • 1回复 待解决
HarmonyOS 需要MD5加密算法
957浏览 • 1回复 待解决
HarmonyOS 文件md5值计算问题
744浏览 • 1回复 待解决
HarmonyOS 关于求文件的md5
760浏览 • 1回复 待解决
MD5加密后解码结果乱码
854浏览 • 1回复 待解决
HarmonyOS 如何计算文件的md5
1445浏览 • 1回复 待解决
HarmonyOS App备案信息MD5的获取
716浏览 • 1回复 待解决
HarmonyOS 字符串Md5加密问题
655浏览 • 1回复 待解决
HarmonyOS 应用备案公钥、md5怎么填写
588浏览 • 1回复 待解决
HarmonyOS 如何获取媒体资源的md5信息
1571浏览 • 1回复 待解决
HarmonyOS 请问有提供md5算法库吗?
1073浏览 • 1回复 待解决
HarmonyOS 字节数组进行MD5加密
725浏览 • 1回复 待解决
求告知ArkTS如何获取MD5
1657浏览 • 0回复 待解决
HarmonyOS 怎么实现特定的MD5加密方式
749浏览 • 2回复 待解决