klover2 / wechatpay-node-v3-ts

微信支付v3
MIT License
533 stars 83 forks source link

wechatpay_node_v3_1.default is not a constructor #28

Closed soul0932 closed 1 year ago

soul0932 commented 1 year ago

/Users/soulmac/code/node/Nest/src/app.controller.ts:11 const pay = new Pay( ^ TypeError: wechatpay_node_v3_1.default is not a constructor

用在nestjs里时一使用就报这个错误,请问有人能解答一下吗

soul0932 commented 1 year ago

已解决:https://github.com/klover2/wechatpay-node-v3-ts/issues/20

klover2 commented 1 year ago

推荐使用npm install nest-wechatpay-node-v3