我在部署 Firebase 函数时遇到异常。有人遇到过这个奇怪的错误吗?我对错误消息感到困惑。
\n如果是这样,解决办法是什么?
\n我正在使用以下命令
\nfirebase deploy --only functions:chapterpptx\nRun Code Online (Sandbox Code Playgroud)\ni deploying functions\ni functions: ensuring required API cloudfunctions.googleapis.com is enabled...\ni functions: ensuring required API cloudbuild.googleapis.com is enabled...\ni functions: ensuring required API artifactregistry.googleapis.com is enabled...\n\xe2\x9c\x94 functions: required API artifactregistry.googleapis.com is enabled\n\xe2\x9c\x94 functions: required API cloudfunctions.googleapis.com is enabled\n\xe2\x9c\x94 functions: required API cloudbuild.googleapis.com is enabled\n\nError: Error occurred while parsing your function triggers.\n\n/Users/xxxxxx/Projects/nationals/functions/node_modules/firebase-admin/lib/app/firebase-app.js:174\n this.appStore?.removeApp(this.name);\n ^\n\nSyntaxError: Unexpected token '.'\n at wrapSafe (internal/modules/cjs/loader.js:1052:16)\n at Module._compile (internal/modules/cjs/loader.js:1100:27)\n at Module._compile (pkg/prelude/bootstrap.js:1394:32)\n at Object.Module._extensions..js (internal/modules/cjs/loader.js:1156:10)\n at …Run Code Online (Sandbox Code Playgroud)