firebase_core_web
Bug report
I am getting this error when i was run flutter/firebase application on vscode.
DEBUG CONSOLE:
`/C:/Users/gacwi/AppData/Local/Pub/Cache/hosted/pub.dev/firebase_core_web-2.11.4/lib/src/firebase_core_web.dart:152:43:`
Error: The getter 'winydowVar' isn't defined for the class 'FirebaseCoreWeb'.
- 'FirebaseCoreWeb' is from 'package:firebase_core_web/firebase_core_web.dart'
('/C:/Users/gacwi/AppData/Local/Pub/Cache/hosted/pub.dev/firebase_core_web-2.11.4/lib/firebase_core_web.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'winydowVar'.
globalContext.delete('ff_trigger_$winydowVar'.toJS);
^^^^^^^^^^
Failed to compile `application.`
I asked a more detailed question on stackoverflow. Since I couldn't find an answer there, I wanted to ask here too.
https://stackoverflow.com/questions/78009138/i-cant-run-my-flutter-firebase-projects-in-vscode
Here i'm having similar problems since updating to flutter 3.19.
But my error is closer to the one on #12345.
My flutter doctor:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.19.0, on Microsoft Windows [versao 10.0.22631.3007], locale pt-BR)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[X] Visual Studio - develop Windows apps
X Visual Studio not installed; this is necessary to develop Windows apps.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2023.1)
[√] VS Code (version 1.86.2)
[√] Connected device (3 available)
[√] Network resources
! Doctor found issues in 1 category.
And package versions:
firebase_core: 2.25.4
firebase_auth: 4.17.4
cloud_firestore: 4.15.4
firebase_storage: 11.6.5
firebase_analytics: 10.8.5
My Flutter doctor have problem with vscode too.
`Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.19.0, on Microsoft Windows [Version 10.0.22631.3155], locale tr-TR)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.8.3)
[√] Android Studio (version 2023.1)
[√] VS Code (version unknown)
X Unable to determine VS Code version.
[√] Connected device (3 available)
[√] Network resources
• No issues found!`
Versions:
`environment:
sdk: '>=3.3.0 <4.0.0'
dependencies:
cloud_firestore: ^4.15.4
firebase_auth: ^4.17.4
firebase_core: ^2.25.4
firebase_core_web: ^2.11.3
firebase_ui_auth: ^1.13.0
flutter:
sdk: flutter
provider: ^6.1.1`
+1
+1
+1
@guvenacar - that is odd, if you look at the line: https://github.com/firebase/flutterfire/blob/master/packages/firebase_core/firebase_core_web/lib/src/firebase_core_web.dart#L152
you will note the variable name is windowVar not winydowVar. I would flutter clean and flutter pub get and it should change.
russellwheatley Could such a thing be possible? It's really weird.
I've already done what you said many times. flutter clean and flutter pub get. But i am formating my pc now. I can not check this steps again.
@guvenacar Maybe buying a new machine might help! ;)