You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is actually a duplicate of #7701, but there has been no conclusion there and the issue was closed so i open another one here as I'm struggling across this exact same issue right now.
context['flutterfire_ignore_scripts'] is null, so this crashes
List get _ignoredServiceScripts {
try {
JsObject ignored =
JsObject.fromBrowserObject(context['flutterfire_ignore_scripts']); < -- crash
This issue doesn't appear (it's still there but the app still works fine) only if it's run with the --verbose options enabled (flutter run -d chrome --verbose), otherwise it crashes the app.
Here is some minor details that might help :
With this exact code, there is no issue running it on iOS and android, only web seems to suffer from this issue.
I've also tried adding the name parameter (using the project name inside firebase console) inside the Firebase.initializeApp, but the exact same error still persists.
I've tried switching to several other version of flutter only to no avails:
3.3.9
3.3.1
3.6.0-0.1.pre
3.4.0-34.1.pre
3.3.8
I've also tried to manually insert this line of code inside web/index.html window.flutterfire_ignore_scripts = ['analytics'];
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is actually a duplicate of #7701, but there has been no conclusion there and the issue was closed so i open another one here as I'm struggling across this exact same issue right now.
context['flutterfire_ignore_scripts'] is null, so this crashes
List get _ignoredServiceScripts {
try {
JsObject ignored =
JsObject.fromBrowserObject(context['flutterfire_ignore_scripts']); < -- crash
This issue doesn't appear (it's still there but the app still works fine) only if it's run with the --verbose options enabled (flutter run -d chrome --verbose), otherwise it crashes the app.
Here is some minor details that might help :
With this exact code, there is no issue running it on iOS and android, only web seems to suffer from this issue.
I've also tried adding the name parameter (using the project name inside firebase console) inside the Firebase.initializeApp, but the exact same error still persists.
I've tried switching to several other version of flutter only to no avails:
I've also tried to manually insert this line of code inside web/index.html
window.flutterfire_ignore_scripts = ['analytics'];
such as
With this addition, the error shifted into:
pubspec.yaml:
Beta Was this translation helpful? Give feedback.
All reactions