美文网首页
AlipaySdk is not a constructor

AlipaySdk is not a constructor

作者: 极客红石 | 来源:发表于2020-08-17 21:35 被阅读0次

Node.js 后端引入 alipay-sdk 进行登录校验报错 AlipaySdk is not a constructor。

const AlipaySdk=require('alipay-sdk');

修改为

const AlipaySdk=require('alipay-sdk').default;

成功解决。

相关文章

网友评论

      本文标题:AlipaySdk is not a constructor

      本文链接:https://www.haomeiwen.com/subject/tgyfjktx.html