【问题标题】:Cloud Functions, File remoteconfig.template.json does not existCloud Functions,文件 remoteconfig.template.json 不存在
【发布时间】:2020-10-29 09:04:44
【问题描述】:

当我通过 firebase init 设置 Cloud Functions 文件夹时,一切正常

但是当我输入“firebase deploy”时它一直显示

Error: File remoteconfig.template.json does not exist

我想我在设置时也创建了那个文件。

我用谷歌搜索但没有找到。如何解决?

【问题讨论】:

  • 如果您使用的是 firebase 的 remoteconfig 服务,那么您需要有远程配置 json 文件 firebase.google.com/docs/remote-config/templates
  • @Methkal Khalawi 我必须手动制作吗?启动时,CLI 询问我“你要制作远程配置文件吗”作为 remoteconfig.template.json 所以我输入了'Y'
  • 如果您不使用远程配置,那么只需将其从 firebase.json 文件中删除
  • @MethkalKhalawi 谢谢我的朋友你能回答这个问题吗?stackoverflow.com/questions/64583257/…
  • 我已经为您的问题添加了任何答案。请接受以提高社区的知名度。我会检查你的其他问题

标签: google-cloud-functions


【解决方案1】:

根据您的问题,我了解到您没有使用 firebase 的远程配置产品。只需从 firebase.json 中删除它的定义,一切都会按预期工作。

【讨论】:

    猜你喜欢
    • 2021-03-05
    • 1970-01-01
    • 2019-03-23
    • 1970-01-01
    • 2019-09-27
    • 2019-06-04
    • 2019-05-03
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多