首页 > 解决方案 > 获取“TypeError:this.jsObject.database 不是函数”

问题描述

当我尝试使用依赖项 firebase_database: ^8.0.0 时,我收到标题中显示的错误。我不确定这个错误是在传达什么,我还没有在网上看到很多关于它的事情。

标签: flutter

解决方案


您很可能会得到这个,因为您还没有为 firebase 添加脚本。它在 FlutterFire 文档中 https://firebase.flutter.dev/docs/installation/web#add-firebase-sdks


推荐阅读