[英]gatsby-source-stripe develop errors
我想进行gatsby条纹无服务器结帐,我在条纹上添加了产品。 但我无法安装gatsby-source-stripe或gatsby-source-stripe-products。 错误;
error UNHANDLED EXCEPTION
Error: /...../node_modules/gatsby-source-stripe/gatsby-node.js:4
exports.sourceNodes = async ({ actions }, { objects = [], secretKey = "" }) => {
^^^^^^^^^^^^
SyntaxError: Invalid shorthand property initializer
盖茨比,配置
{
resolve: `gatsby-source-stripe`,
options: {
objects: [
'balance',
'customers',
'products',
'applicationFees',
'skus',
'subscriptions'
],
secretKey: process.env.STRIPE_SECRET
}
},
我有.env文件。
确保已在Stripe中输入测试SKU-您可以通过切换查看测试数据来进行输入。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.