找不到HTTPS功能.使用firebase函数:shell
问题描述:
我一直在努力使我的功能在本地运行,但是我不知道为什么它总是说我没有功能.我使用的是打字稿,所以我在functions文件夹中运行了 tsc
,然后又运行了 sudo firebase serve --only functions
,但出现此错误:
I've been trying all day to get my functions to run locally but I don't know why it keeps saying I have no functions. I'm using typescript, so I ran tsc
in the functions folder, then ran sudo firebase serve --only functions
, but I get this error:
i functions: No HTTPS functions found.
Use firebase functions:shell if you would like to emulate other types of functions.
我尝试在没有 sudo
的情况下提供该功能,但出现权限问题:
I tried serving the function without sudo
but I get permission issues:
答
好吧,我不知道为什么它起作用,但是我只是重新启动了VSCode(因为它有一个更新),现在一切正常.
Ok, I don't know why it worked, but I just restarted VSCode (because it had an update) and everything works now.