No HTTPS functions found. Use firebase functions:shell

陌路散爱 提交于 2019-12-25 03:28:08

问题


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.

Edit: I tried serving the function without sudo but I get permission issues:


回答1:


Make sure you have nothing running on the same port that the Firebase function emulator is trying to run on, in my case I had a Docker container running on port 5000. Once I stopped it and started the Firebase function emulator it served the function correctly.




回答2:


Ok, I don't know why it worked, but I just restarted VSCode (because it had an update) and everything works now.



来源:https://stackoverflow.com/questions/53329108/no-https-functions-found-use-firebase-functionsshell

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!