Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 239
Esraa Mansour Avatar asked Sep 17 '25 11:09

Esraa Mansour


1 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!

like image 179
Javier Garcia Avatar answered Sep 23 '25 06:09

Javier Garcia



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!