How to solve TypeError: functions.https.onCall is not a function?

社会主义新天地 提交于 2019-12-04 15:37:27

Simply updating your Firebase CLI won't solve the problem because you must also update the Cloud Functions SDK in the Project Directory. You mentioned the Firebase Project has been initialized earlier this year, so that's before the release of Callable Cloud Functions.

See, when you init Cloud Functions in your Firebase Project, it creates the functions directory which contains the Cloud Functions SDK. So you (probably) still have the old SDK in the functions directory and you need to update it. To do that, navigate to that directory and run the command:

sudo npm i --save firebase-functions@latest
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!