sie*_*fix 6 google-cloud-functions google-cloud-firestore
当我尝试部署 Cloud Functions 时出现此错误。已尝试使用firebase-admin8.8.0、8.7.0 和 8.6.1(最后 3 个版本)
运行firebase-functions3.3.0
知道问题是什么吗?还有其他人有这个问题吗?
Error: Error occurred while parsing your function triggers.
TypeError: instance.INTERNAL.registerComponent is not a function
at registerDatabase (/PATH/cloud-functions/functions/node_modules/firebase-admin/node_modules/@firebase/database/dist/index.node.cjs.js:15165:39)
at Object.<anonymous> (/PATH/cloud-functions/functions/node_modules/firebase-admin/node_modules/@firebase/database/dist/index.node.cjs.js:15196:5)
at Module._compile (internal/modules/cjs/loader.js:721:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
at Function.Module._load (internal/modules/cjs/loader.js:552:3)
at Module.require (internal/modules/cjs/loader.js:657:17)
at require (internal/modules/cjs/helpers.js:22:18)
at FirebaseNamespace.get [as database] (/PATH/cloud-functions/functions/node_modules/firebase-admin/lib/firebase-namespace.js:282:38)
Run Code Online (Sandbox Code Playgroud)
San*_*ana 10
instance.INTERNAL.registerComponent
Run Code Online (Sandbox Code Playgroud)
驻留在 firebase/app 库中
所以运行npm install @firebase/app --save解决了这个问题
已在Github上解决。Firebase 中的一个错误
https://github.com/firebase/firebase-admin-node/issues/714
https://github.com/firebase/firebase-admin-node/issues/717
| 归档时间: |
|
| 查看次数: |
3453 次 |
| 最近记录: |