TypeError:无法读取未定义的属性“秘密”

时间:2020-08-14 16:50:45

标签: node.js

对此我还很陌生,我正在使用node.js将条纹与我正在研究的Firebase ios项目集成在一起。我还没有看到有关如何解决此问题的答案,这是我的lib/index.js中的相关代码:

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const functions = require("firebase-functions");
// // Start writing Firebase Functions
// // https://firebase.google.com/docs/functions/typescript
//
// export const helloWorld = functions.https.onRequest((request, response) => {
//   functions.logger.info("Hello logs!", {structuredData: true});
//   response.send("Hello from Firebase!");
// });
'use strict';


const admin = require('firebase-admin');
admin.initializeApp();
const { Logging } = require('@google-cloud/logging');
const logging = new Logging({
  projectId: process.env.GCLOUD_PROJECT,
});
const stripe = require('stripe')(functions.config().stripe.secret, {
  apiVersion: '2020-03-02',
});

0 个答案:

没有答案