"Method not found: 'guardWebExceptions'" when compiling Flutter web application

Viewed 2956

I'm getting this error when i am trying to link my app with firebase on flutter web:

/C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/firebase_storage_web-3.2.9/lib/src/utils/errors.dart:20:20: Error: Method not found: 'guardWebExceptions'.

return internals.guardWebExceptions(

              ^^^^^^^^^^^^^^^^^^

Failed to compile application.

How can i solve this?

3 Answers
firebase_core: ^1.12.0 -> firebase_core: ^1.13.1
cloud_firestore: ^3.1.8 -> cloud_firestore: ^3.1.10
firebase_analytics: ^9.1.0 -> firebase_analytics: ^9.1.2

Then do:

flutter clean
flutter run

This works for me, greetings!

I have the same problem, only need to change this on pubspec.yaml

from firebase_core: ^1.12.0 to firebase_core: ^1.13.1

I've solved this problem by adding this package to dependencies on pubspec.yaml

  • cloud_firestore_platform_interface: 5.4.13
Related