我正在执行 Stripes 集成步骤,但遇到了在步骤 2.1 中发现的代码错误(https://stripe.com/docs/connect/collect-then-transfer-guide#create-an-account-link)
我该如何解决这个错误?
代码:
const stripe = require('stripe')('someID');
const account = await stripe.accounts.create({
type: 'express',
});
Run Code Online (Sandbox Code Playgroud)
错误:
仅当 'module' 选项设置为 'esnext' 或 'system',并且 'target' 选项设置为 'es2017' 或更高版本时,才允许使用顶级 'await' 表达式。 ts(1378)