错误:找不到方法:“dartify”。将 cloud_firestore 添加到 flutter web 项目后

问题描述 投票:0回答:1

在 Chrome 上以调试模式启动 lib\main.dart... ../../AppData/Local/Pub/Cache/hosted/pub.dev/firebase_auth_web-5.10.1/lib/src/interop/utils/utils.dart:11:23:错误:找不到方法:'dartify '。 返回 core_interop.dartify(jsObject); ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/firebase_auth_web-5.10.1/lib/src/interop/utils/utils.dart:19:23:错误:找不到方法:'jsify '。 返回 core_interop.jsify(dartObject, customJsify); ^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/firebase_auth_web-5.10.1/lib/src/interop/auth.dart:36:22:错误:找不到方法:“customJSList”。 持久性:customJSList(持久性), ^^^^^^^^^^^^^ 编译应用程序失败。

退出 (1)。

我正在尝试访问 cloud_firestore 数据库。可能出了什么问题?

我正在尝试访问 flutter web 应用程序的云 firestore 数据库。

flutter google-cloud-firestore
1个回答
0
投票

看起来像删除

pubspec.lock
并运行
flutter pub get
解决问题

© www.soinside.com 2019 - 2024. All rights reserved.