Firebase Functions 部署有以下功能错误

Firebase Functions deploy had errors with the following functions

我正在尝试部署 firebase 函数,但出现以下错误:

    PS D:\projects\functions> yarn deploy
i  functions: ensuring required API cloudfunctions.googleapis.com is enabled...
i  functions: ensuring required API cloudbuild.googleapis.com is enabled...
+  functions: required API cloudbuild.googleapis.com is enabled
+  functions: required API cloudfunctions.googleapis.com is enabled
i  functions: preparing functions directory for uploading...
i  functions: packaged functions (54.39 KB) for uploading
+  functions: functions folder uploaded successfully
i  functions: creating Node.js 16 function geoCodeByGoogle(us-central1)...
i  functions: creating Node.js 16 function placesByGoogle(us-central1)...

Functions deploy had errors with the following functions:
        geoCodeByGoogle(us-central1)
        placesByGoogle(us-central1)
i  functions: cleaning up build files...
Error: There was an error deploying functions:
- Error Failed to create function geoCodeByGoogle in region us-central1
- Error Failed to create function placesByGoogle in region us-central1
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

我试过了,

  1. 正在从 CLI 中删除函数
  2. 已尝试更改区域并重新部署,但仍然无法正常工作,因为它将转到以前的区域设置。 3.Deleting 节点模块 4.Renaming 函数 5.Deleting 来自控制台的功能 6.Redploying

没有任何效果。

有什么想法吗,如何解决?

谢谢

找到答案,

刚刚尝试通过点击 firebase functions:log 来打印日志,这给出了遗漏的内容。在我的例子中 @googlemaps/google-maps-services-js 不见了。我添加了并且有效。