【问题标题】:GCloud Functions: load error: File ./dist/index.js that is expected to define function doesn't existGCloud Functions:加载错误:预期定义函数的文件 ./dist/index.js 不存在
【发布时间】:2018-08-28 16:19:31
【问题描述】:

当我尝试部署到谷歌云功能时,我得到了响应

load error: File ./dist/index.js that is expected to define function doesn't exist

这是为什么呢?

【问题讨论】:

    标签: gcloud


    【解决方案1】:

    它没有上传我的dist 文件夹,因为那是 gitignored。在 .gcloudignore 中,我可以通过从文件中删除 #!include:.gitignore 来删除 gitignore 的添加。

    【讨论】:

      猜你喜欢
      • 2019-02-25
      • 2018-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-10-27
      • 2021-05-14
      • 1970-01-01
      相关资源
      最近更新 更多