After deploying a JavaScript Cloud Function, it shows that the deployment is completed. However, when I check Firebase, the function is not there. Oddly, TypeScript Cloud Functions deploy successfully.
I followed all the steps outlined in the original Firebase video tutorial, including installing firebase-tools. Even after attempting to deploy an uncommented "hello world" function, I encountered the same issue.
I've tried reinitializing Firebase multiple times and even reinstalling Node and Firebase tools, but the problem persists. Local emulation also fails, as seen in the provided screenshot.
The index.js file can be viewed here.
View the firebase.json configuration here.
Check out the deployment message in cmd here.
And here's the emulated message in cmd here.
EDIT: When I attempted to deploy with a specified function, this error occurred: https://i.stack.imgur.com/aTqIs.png
Deploying with an empty firebase.json document resulted in this outcome: https://i.stack.imgur.com/NlnUP.png
Lastly, deploying with the recommended firebase.json settings yielded this result: https://i.stack.imgur.com/2ltqV.png
Apologies for the image-heavy post, but formatting code has been challenging for me.