Console.log On Firebase Cloud Functions Simply Not Logging.
Answer :
Ok, the problem ended up being that the function wasn't deploying properly.
What had happened was due to some typescript/firebase config issue - the new code was being compiled to a location that wasn't what firebase was looking for.
When deployed the code - some old compiled code was still there to be deployed.
The moral of the story here is: make sure you delete your dist/build/lib directory before deploying - as that will cause an error if firebase is looking in the wrong place.
In case someone wastes as much time as I did. It turned out I was logged into the wrong firebase project ♂️.
firebase projects:list
Your current project will be highlighted in blue with "(current)" beside it.
If you need to change project:
firebase use insert-project-id-here
Comments
Post a Comment