【发布时间】:2018-11-16 19:27:30
【问题描述】:
当我尝试运行 sudo functions deploy login --trigger-http 时,我收到以下错误:
错误:函数加载错误:无法加载代码。
错误:文件是否存在?您的代码中是否存在语法错误?
错误:详细的堆栈跟踪:module.js:549
但我已经在/lib 中有一个index.js 文件。我不知道是否还有比这更大的问题,因为我刚刚解决了我的last issue。或者这可能是无关的。我一直很难通过调试使函数在本地运行:
【问题讨论】:
-
firebase 命令行语法为
firebase deploy --only functions:myfunction -
@RonRoyston 我正在使用函数 cli 工具:github.com/GoogleCloudPlatform/cloud-functions-emulator/wiki/…
标签: firebase google-cloud-functions