腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(7192)
视频
沙龙
1
回答
云
修复: TypeError:
无法
读取
未定义
的
属性
'
ref
‘
、
、
、
云
修复: TypeError:
无法
读取
未定义
的
属性
'
ref
‘.onCreate(event => const col
浏览 0
提问于2018-05-13
得票数 1
4
回答
云
函数
-
云
修复错误:
无法
获得serverTimestamp
、
、
云
函数
-
云
修复错误:
无法
获得serverTimestamp exports.userlog = functions.firestoretimestamp: timestamp { return console.log('Added documentwith ID: '
浏览 1
提问于2018-05-16
得票数 12
1
回答
Firebase
云
函数
。
无法
读取
未定义
(.
ref
)
的
属性
parent
、
、
我正在尝试将以下
函数
部署到
firebase
。该
函数
部署得很好,但是当该
函数
触发时,我会得到一个错误:cannot read property '
parent
' of undefined。错误发生在I引用父项
的
第一行中。我在快照和snapshot.
ref
上使用了console.log,虽然快照存在,但snapshot.
ref
是
未定义
的
。我在其他
云
函数
中使用过sna
浏览 3
提问于2019-09-26
得票数 0
回答已采纳
1
回答
无法
读取
Firebase
函数
中
未定义
的
属性
“
ref
”
、
、
一旦
云
函数
数据生成,尝试运行
Firebase
函数
中
的
函数
。实际上,我希望运行通过添加sendEmail集合
的
数据触发
的
events。,但这些事件多次发生,而不是一次.。TypeError:
无法
读取
未定义
的
属性
“
ref
” .document("eve
浏览 0
提问于2020-04-12
得票数 0
回答已采纳
1
回答
TypeError:
无法
读取
未定义
的
属性
“uid”
、
、
、
这是我第一个用于
firebase
的
javascript
函数
。 const admin = require('
firebase
-admin
浏览 0
提问于2018-04-29
得票数 1
回答已采纳
2
回答
如何使用NodeJS脚本中
的
防火墙工具?
、
、
、
、
我想从NodeJS脚本(而不是从
云
函数
)中删除Firestore集合及其子集合。我
无法
正确地选择项目。为了清楚起见,我希望执行与此CLI命令相同
的
操作,但要通过脚本执行:以下是我
的
尝试"); async function deleteCollection(collecti
浏览 14
提问于2020-09-29
得票数 1
回答已采纳
1
回答
Firebase
函数
:
无法
读取
未定义
的
属性
“val”
、
、
我试图在
Firebase
数据库中添加一个
函数
,每当其他两个
属性
发生更改时,该
函数
就会创建/更新另外两个
属性
的
组合
属性
。return; const room = event.data.
ref
.
parent
.child('room').data.val(); console.lo
浏览 3
提问于2017-10-20
得票数 0
2
回答
需要帮助
Firebase
功能
、
、
我试图使用node.js编写一个
云
函数
,并得到了以下错误: 在exports.FindRoom.functions.database.
ref
.onWrite (/user_code/index.js:299:39)处,TypeError:
无法
读取
未定义
的
属性
“user_id”。= functions.database.
ref
(`/FindRoom/{user_id}`).onWrite((ev
浏览 0
提问于2018-04-04
得票数 0
回答已采纳
2
回答
firebase
云
函数
无法
读取
未定义
的
属性
“
ref
”
、
、
、
const functions = require('
firebase
-functions');admin.initializeAppfunctions.database .onUpdate(event => { var db = admin.firestoreconst usersRef
浏览 0
提问于2018-10-14
得票数 0
回答已采纳
1
回答
无法
读取
未定义
(
读取
“路径”)
Firebase
ref
函数
冲突
的
属性
、
、
、
错误:根据我
的
测试, from "https://www.gstatic.com/firebasejs/9.1.1/
firebase
-storage.js";
浏览 3
提问于2021-10-11
得票数 4
回答已采纳
1
回答
实时数据库
的
firebase
函数
中
的
event.data.
ref
出乎意料地为空。
、
、
我是否有语法错误,或者该
函数
是否与我当前正在阅读
的
内容编写时发生了更改。
云
功能: .
ref
("/status/{userId}") // Reference to the
Firebase
RealTime database key onUserStat
浏览 1
提问于2022-06-23
得票数 0
3
回答
固定恢复中
的
云
函数
FieldValue增量TypeError
、
、
、
、
我在
firebase
模拟器中测试
云
函数
,并在尝试增加
云
火药库中
的
字段时出错。请检查我
的
代码和错误信息下面。谢谢你
的
帮助!import * as functions from "
firebase
-functions"; console.log
浏览 12
提问于2022-07-22
得票数 3
回答已采纳
1
回答
火
云
功能没有触发?
、
、
这是我
的
功能,它甚至不是由防火墙
函数
云
触发
的
!我收到一条错误消息: Error:。详细信息:
无法
读取
未定义
的
属性
“
ref
” exports.sendPushNotification = functions.database.
ref
('contacts/').onCreate
浏览 7
提问于2019-10-30
得票数 0
回答已采纳
1
回答
防火墙
云
函数
不返回值,返回
的
数据总是空
的
。
、
、
、
我对
firebase
相当陌生,在执行
云
函数
之后一直试图返回一个值。我可以看到这个功能运行得很顺利。它只返回一个空数据。多么
无法
从
Firebase
云
函数
接收值。这是我
的
函数
代码。功能运行顺利。它只是返回一个空数据。) => { throw new functions.https.Https
浏览 0
提问于2019-08-29
得票数 0
回答已采纳
1
回答
我有一个this.state,需要在componentDidMount中传递setState,如何在setState中使用bind(this)?
、
、
、
、
TypeError:
无法
读取
未定义
的
属性
“setState”constructor() { this.app=
firebase
.initializeApp(
firebase
_config); this.database = this.app.database().
ref
().child('users/Switc
浏览 0
提问于2019-02-10
得票数 2
回答已采纳
2
回答
如何解决此
Firebase
云
函数
错误:
无法
读取
属性
、
、
我遵循一个,在这里我要向我
的
项目中添加一些
Firebase
函数
(步骤5)。我已经成功地将我
的
云
功能部署到了
firebase
,但是当我在
Firebase
数据库控制台中手动添加一个新产品时,什么都不会发生。我发现触发了
Firebase
云
函数
,但它得到了一个错误:"TypeError:
无法
读取
未定义
的
属性
'prod
浏览 0
提问于2018-04-25
得票数 0
回答已采纳
2
回答
云
函数
onUpdate:
无法
读取
未定义
的
属性
“forEach”
、
、
、
、
现在我正在尝试更新我
的
项目中
的
图片。我可以更新
云
火商店
的
图片网址。而且,我还想使用
firebase
云
函数
从
云
存储中删除前面的图片。我在“产品”收藏中有“样品”字段。当更新"sample“字段中
的
图片时,我希望删除
云
存储中
的
原始图片。 但我在
云
浏览 2
提问于2020-11-16
得票数 0
回答已采纳
1
回答
火基
函数
getChild值
、
、
、
我试图做
的
是,当Item
的
子项被更新时,我想获得Count
的
值并进行进一步
的
计算,但是我面临
的
问题是,
firebase
日志控制台总是显示一个erreor "TypeError:
无法
读取
属性
'val‘
的
未定义
的
属性
: exports.ItemCount = functions.database.
ref
('/V
浏览 0
提问于2019-04-25
得票数 0
回答已采纳
1
回答
Firebase
函数
-获取当前DataSnapshot
的
同级
、
、
、
我
的
数据库结构如下 我在
firebase
云
函数
中使用onWrite(snapshot, context)监听actives节点。我想根据活动
的
变化来获取token节点
的
值。我
的
触发器
函数
如下。exports.sendNotification = functions.database.
ref
('root/users/{userid}/actives/{pushId}')
浏览 7
提问于2018-09-07
得票数 0
回答已采纳
1
回答
如何统计使用
Firebase
云
函数
的
用户(获取
函数
返回
未定义
的
错误)
、
我有一个
Firebase
Cloud
函数
,它可以为onWrite上
的
用户分配一个号码。/uoNEKjUDikJlkpLm6n0IPm7x8Zf1 : 5'use strict'; const
pa
浏览 5
提问于2018-08-21
得票数 1
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Vue3.5 重磅更新:useTemplateRef 函数,模板引用更优雅!
JS实现继承的5种方式
一文了解“最好编程语言”PHP 必知的 16 个编程法则!
第八章 Http服务与数据库
深入理解Vue 3.0中的watch属性immediate和deep的用法
热门
标签
更多标签
云服务器
ICP备案
腾讯会议
云直播
对象存储
活动推荐
运营活动
广告
关闭
领券