0

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.

enter image description here

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

enter image description here

AskYous
  • 4,332
  • 9
  • 46
  • 82

2 Answers2

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.

keano
  • 691
  • 7
  • 9
0

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

AskYous
  • 4,332
  • 9
  • 46
  • 82