【发布时间】:2025-02-06 22:05:02
【问题描述】:
我已将我的 firebase-tools 库和模拟器更新到最新版本,但在尝试运行我的规则时,标题中不断出现错误
完全错误:
INVALID_ARGUMENT: Error compiling rules:
Use of ternary operator not allowed.
例如,它在以下代码中显示此错误:
function test(val) {
return val ? 1 : 2;
}
这应该按照最新的release notes 和doc 工作。模拟器还不支持三元运算符吗?
【问题讨论】:
-
如果模拟器没有按您预期的方式工作,您应该在其 GitHub 上提交问题。 github.com/firebase/firebase-tools
标签: google-cloud-firestore firebase-security firebase-cli