且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Firebase 函数 onCreate 触发器错误:TypeError:无法读取未定义的属性“匹配"

更新时间:2021-10-08 03:52:04

我有同样的错误,当我部署时我有这个警告:

I had the same error, when i deployed i had this warning:

⚠ 函数:您必须有一个 firebase-functions 版本,该版本位于至少 2.0.0.请运行 npm i --save firebase-functions@latest 在函数文件夹.

⚠ functions: You must have a firebase-functions version that is at least 2.0.0. Please run npm i --save firebase-functions@latest in the functions folder.

在我安装了它工作的最后一个 firebase-functions 版本之后.

after i installed the last firebase-functions version it worked.

所以我的解决方案是:

npm i --save firebase-functions@latest

npm i --save firebase-functions@latest