我正在尝试部署 firebase 云功能,但不断收到此错误。最奇怪的部分是,我让它工作正常,但从 firebase 与云视觉对话切换到 firebase 与 google 文档对话。突然,这个错误出现了。我已经尝试了几个不同版本的 firebase 工具和 NodeJS,但尚未能够解决该问题。这是下面的错误。
[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 …Run Code Online (Sandbox Code Playgroud)