GCloud 函数:加载错误:预期定义函数的文件 ./dist/index.js 不存在

ber*_*ing 3 gcloud

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

load error: File ./dist/index.js that is expected to define function doesn't exist
Run Code Online (Sandbox Code Playgroud)

这是为什么?

ber*_*ing 5

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