🔥 A collection of Firebase plugins for Flutter apps.
BSD 3-Clause "New" or "Revised" License
8.59k
stars
3.94k
forks
source link
[firebase_analytics]: `TypeError: Cannot convert undefined or null to object` when hot reload web application #13079
Closed
magnocasmor closed 1 month ago
Is there an existing issue for this?
Which plugins are affected?
Analytics
Which platforms are affected?
Web
Description
The plugin throws a
TypeError
every time when hot reloading or hot restarting the application on the web.Reproducing the issue
example
on the webFirebase Core version
3.1.1
Flutter Version
3.22.2
Relevant Log Output
Logs
```shell Performing hot restart... 123ms Restarted application in 123ms. TypeError: Cannot convert undefined or null to object https://www.gstatic.com/firebasejs/10.11.1/firebase-analytics.js 1:2132 deepEqual https://www.gstatic.com/firebasejs/10.11.1/firebase-analytics.js 1:26907 initializeAnalytics dart-sdk/lib/_internal/js_shared/lib/js_util_patch.dart 110:66 callMethod$ packages/firebase_analytics_web/interop/analytics.dart 23:29 getAnalyticsInstance packages/firebase_analytics_web/firebase_analytics_web.dart 24:48 get [_delegate] packages/firebase_analytics_web/firebase_analytics_web.dart 68:24Flutter dependencies
No response
Additional context and comments
No response