import { Pay } from '@cashier_alipay/cashiersdk'
export interface RequestPaymentOptions {
orderInfo : string
}
export function requestPayment(options : RequestPaymentOptions) {
return new Pay().pay(options.orderInfo, true)
}
编译报错信息如下:
[plugin:uni:uts-uni_modules] [uni:uts-uni_modules] load_transformed failed
Caused by:
0: failed to analyze module
1: failed to resolve @cashier_alipay/cashiersdk from /Users/wliang/Documents/xxx/src/uni_modules/hm-pay/utssdk/app-harmony/index.uts
2: Impossible to get the node_modules path
file: /Users/wliang/Documents/xxx/src/uni_modules/hm-pay?uts-proxy
at uni_modules/hm-pay:1:0
按照官方的教程用 uts 去调用鸿蒙 next 的支付宝相关插件,编译不通过,
HBuidler版本号: 4.26.2024082213-alpha
附上 uts 代码:
编译报错信息如下:
请问如何解决这个问题