I am going through Stripes integration steps and have come across an error for my code found in step 2.1 (https://stripe.com/docs/connect/collect-then-transfer-guide#create-an-account-link)
How do I fix this error?
Code:
const stripe = require('stripe')('someID');
const account = await stripe.accounts.create({
type: 'express',
});
Error:
Top-level 'await' expressions are only allowed when the 'module'
option is set to 'esnext' or 'system', and the 'target' option is set
to 'es2017' or higher.ts(1378)