Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[firebase_core_web]: No Firebase App '[DEFAULT]' has been created #13016

Open
1 task done
feriyalsusanto opened this issue Jul 1, 2024 · 8 comments
Open
1 task done
Assignees
Labels
blocked: customer-response Waiting for customer response, e.g. more information was requested. platform: web Issues / PRs which are specifically for web. plugin: core type: bug Something isn't working

Comments

@feriyalsusanto
Copy link

Is there an existing issue for this?

  • I have searched the existing issues.

Which plugins are affected?

Core

Which platforms are affected?

Web

Description

I'm unable to initialize app using Firebase. Already tried several methods and still facing the same issue.

Reproducing the issue

  1. New Project
  1. Example Project (flutterfire)
  • Clone flutterfire repository
  • Run project in google chrome
  • Error No Firebase App '[DEFAULT]' has been created

Firebase Core version

3.1.1

Flutter Version

3.22.2

Relevant Log Output

No response

Flutter dependencies

Expand Flutter dependencies snippet
Dart SDK 3.4.3
Flutter SDK 3.22.2
my_web_project 1.0.0+1

dependencies:
- cupertino_icons 1.0.8
- firebase_core 3.1.1 [firebase_core_platform_interface firebase_core_web flutter meta]
- flutter 0.0.0 [characters collection material_color_utilities meta vector_math sky_engine]

dev dependencies:
- flutter_lints 3.0.2 [lints]
- flutter_test 0.0.0 [flutter test_api matcher path fake_async clock stack_trace vector_math leak_tracker_flutter_testing async boolean_selector characters collection leak_tracker leak_tracker_testing material_color_utilities meta source_span stream_channel string_scanner term_glyph vm_service]

transitive dependencies:
- async 2.11.0 [collection meta]
- boolean_selector 2.1.1 [source_span string_scanner]
- characters 1.3.0
- clock 1.1.1
- collection 1.18.0
- fake_async 1.3.1 [clock collection]
- firebase_core_platform_interface 5.1.0 [collection flutter flutter_test meta plugin_platform_interface]
- firebase_core_web 2.17.2 [firebase_core_platform_interface flutter flutter_web_plugins meta web]
- flutter_web_plugins 0.0.0 [flutter characters collection material_color_utilities meta vector_math]
- leak_tracker 10.0.4 [clock collection meta path vm_service]
- leak_tracker_flutter_testing 3.0.3 [flutter leak_tracker leak_tracker_testing matcher meta]
- leak_tracker_testing 3.0.1 [leak_tracker matcher meta]
- lints 3.0.0
- matcher 0.12.16+1 [async meta stack_trace term_glyph test_api]
- material_color_utilities 0.8.0 [collection]
- meta 1.12.0
- path 1.9.0
- plugin_platform_interface 2.1.8 [meta]
- sky_engine 0.0.99
- source_span 1.10.0 [collection path term_glyph]
- stack_trace 1.11.1 [path]
- stream_channel 2.1.2 [async]
- string_scanner 1.2.0 [source_span]
- term_glyph 1.2.1
- test_api 0.7.0 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph]
- vector_math 2.1.4
- vm_service 14.2.1
- web 0.5.1
- 

Additional context and comments

Has tried to clean pub cache and still facing the same issue

@feriyalsusanto feriyalsusanto added Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels Jul 1, 2024
@Lyokone
Copy link
Contributor

Lyokone commented Jul 1, 2024

Hello @feriyalsusanto, are you using Windows as your developing platform?

@Lyokone Lyokone added blocked: customer-response Waiting for customer response, e.g. more information was requested. plugin: core platform: web Issues / PRs which are specifically for web. labels Jul 1, 2024
@feriyalsusanto
Copy link
Author

Hello @feriyalsusanto, are you using Windows as your developing platform?

Yes, I’m using windows and mac for develop the app

@TarekkMA
Copy link
Contributor

TarekkMA commented Jul 1, 2024

@feriyalsusanto Hello, can you check if this issue is relevant? #12989

@TarekkMA TarekkMA self-assigned this Jul 1, 2024
@TarekkMA TarekkMA removed the Needs Attention This issue needs maintainer attention. label Jul 1, 2024
@feriyalsusanto
Copy link
Author

@feriyalsusanto Hello, can you check if this issue is relevant? #12989

I'm not using firebase_auth at the moment, just an new created project and trying to add firebase for my web project and facing this error.
I also not sure if using try catch will resolve my issue and as we know using try catch will by pass the "error" and yes the app will run with no error.

@TarekkMA
Copy link
Contributor

TarekkMA commented Jul 1, 2024

Thank you for the reply. Are you using VS Code with these checkboxes enabled?

Screenshot 2024-07-01 at 11 26 47 AM

If so, please try running the application from the CLI using flutter run -d chrome and see if any issues occur.

@feriyalsusanto
Copy link
Author

Thank you for the reply. Are you using VS Code with these checkboxes enabled?

Screenshot 2024-07-01 at 11 26 47 AM

If so, please try running the application from the CLI using flutter run -d chrome and see if any issues occur.

image

Yes, still got the error.

@TarekkMA
Copy link
Contributor

TarekkMA commented Jul 1, 2024

Can you try to uncheck All Exceptions and test again? it should work fine.

@spakanati
Copy link

I'm also experiencing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked: customer-response Waiting for customer response, e.g. more information was requested. platform: web Issues / PRs which are specifically for web. plugin: core type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants