在使用soap
npm包时,我得到了这个错误。App是在Meteor中构建的。
以下是代码:
soap.createClientAsync(url).then((client) => {
return client.someMethod(soapArgs, function(err, result) {
if (result) {
console.log('result');
console.log(result);
}
});
}).then((result) => {
console.log('soap.createClientAsync');
console.log(result);
});
发布于 2022-03-14 19:04:35
你在用TypeScript吗?您必须使用import * as soap from "soap"
进行导入,因为在soap中没有默认的导出。
https://stackoverflow.com/questions/47284815
复制相似问题