错误 TS6133:声明了“函数”,但从未读取其值

问题描述

这个问题似乎与 error TS6133 重复,但就我而言,这似乎是一个误报,因为我在方法中使用了该变量,但它仍然抱怨。

enter image description here

在我的代码中,我使用了如下变量

import * as functions from "firebase-functions";
import * as admin from "firebase-admin";
import {DocumentReference,FieldValue,Timestamp}
  from "@google-cloud/firestore";

const app = admin.initializeApp();


exports.onMessageCreate = functions.firestore
    .document( // method body goes here
        

我已按如下方式修改了 tsconfig.json,但编译器在部署时仍然失败

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)