I'm trying to deploy a firebase cloud function, but I keep getting this error. The weirdest part is that I had it working fine but switched from firebase talking to cloud vision over to firebase talking to google documentation. And suddenly, this error appeared. I've tried several different versions of firebase tools and NodeJS but have yet to be able to fix the issue. Here is the error below.
[2023-02-28T17:29:15.917Z] Building nodejs source
[2023-02-28T17:29:15.922Z] Could not find functions.yaml. Must use http discovery
[2023-02-28T17:29:15.935Z] Found firebase-functions binary at 'C:\Users\crisb\source\repos\Javascriptcouldfunction4\functions\node_modules\.bin\firebase-functions'
[2023-02-28T17:29:17.570Z] Serving at port 8704
[2023-02-28T17:29:19.519Z] Got response from /__/functions.yaml Failed to generate manifest from function source: TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received an instance of Object
[2023-02-28T17:29:19.522Z] Failed to parse functions.yamlincomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line at line 1, column 83:
... TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of t ...
^ {"name":"YAMLException","reason":"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line","mark":{"name":null,"buffer":"Failed to generate manifest from function source: TypeError [ERR_INVALID_ARG_TYPE]: The \"id\" argument must be of type string. Received an instance of Object\n\u0000","position":82,"line":0,"column":82},"message":"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line at line 1, column 83:\n ... TypeError [ERR_INVALID_ARG_TYPE]: The \"id\" argument must be of t ... \n ^"}
[2023-02-28T17:29:19.528Z] shutdown requested via /__/quitquitquit
Error: Failed to load function definition from source: Failed to generate manifest from function source: TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received an instance of Object
I've tried several different versions of firebase tools and NodeJS but have yet to be able to fix the issue. I rebuilt the entire project from scratch but still got the same issue.