Why "Unhandled promise rejection TypeError: null is not a function" while using AdyenCheckout in my angular app?

Why "Unhandled promise rejection TypeError: null is not a function" while using AdyenCheckout in my angular app?

在我的 angular 应用程序中,我正在使用 AdyenCheckout 进行付款,但是一旦我打开我正在使用 AdyenCheckout 的屏幕(付款屏幕),我在移动时反复收到控制台错误我的光标

“未处理的承诺拒绝类型错误:null 不是函数”

以下是我的package.json

"@adyen/adyen-web": "^4.5.0",
"@agm/core": "1.0.0-beta.3",
"@angular/animations": "8.2.13",
"@angular/cdk": "^8.1.1",
"@angular/cli": "8.3.17",
"@angular/common": "8.2.13",
"@angular/compiler": "8.2.13",
"@angular/core": "8.2.13",
"@angular/forms": "8.2.13",
"@angular/material": "8.1.1",
"@angular/material-moment-adapter": "8.1.1",
"@angular/platform-browser": "8.2.13",
"@angular/platform-browser-dynamic": "8.2.13",
"@angular/router": "8.2.13",

结帐代码

const checkout = new AdyenCheckout(configuration);

升级版本到 "@adyen/adyen-web": "5.5.0",

 const checkout = await AdyenCheckout(configuration);