Coder Social home page Coder Social logo

Comments (7)

TarekkMA avatar TarekkMA commented on August 27, 2024 1

Closing this out, since this error seems to be handled and should not affect anything.

try {
app = firebase.app();
defaultAppExists = true;
} catch (e) {
// noop
}

from flutterfire.

TarekkMA avatar TarekkMA commented on August 27, 2024

Hello @kris-cc3 Did you try the flutterfire auth example app found here: https://github.com/firebase/flutterfire/tree/master/packages/firebase_auth/firebase_auth/example

from flutterfire.

shamith-Adya avatar shamith-Adya commented on August 27, 2024

Any progress on this? I'm facing the exact same issue

from flutterfire.

kris-cc3 avatar kris-cc3 commented on August 27, 2024

Yes I tried setting up main as in this example and saw the same issue. I’d need to go back and reconfirm though and have a closer look at what’s in auth.dart. I won’t be at the computer for maybe a week though.

from flutterfire.

shamith-Adya avatar shamith-Adya commented on August 27, 2024

Hi @TarekkMA I'm also able to reproduce this issue in firebaseauth as well

Platform : Web

Relevant Logs

Exception has occurred.
FirebaseError: Firebase: No Firebase App '[DEFAULT]' has been created - call initializeApp() first (app/no-app).
https://www.gstatic.com/firebasejs/10.11.1/firebase-app.js 2220:29 getApp
packages/firebase_core_web/src/interop/core.dart 60:28 app$
packages/firebase_core_web/src/firebase_core_web.dart 255:24 initializeApp
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 45:50
dart-sdk/lib/async/zone.dart 1661:54 runUnary
dart-sdk/lib/async/future_impl.dart 163:18 handleValue
dart-sdk/lib/async/future_impl.dart 847:44 handleValueCallback
dart-sdk/lib/async/future_impl.dart 876:13 _propagateToListeners
dart-sdk/lib/async/future_impl.dart 652:5 [_completeWithValue]
dart-sdk/lib/async/future.dart 532:22
dart-sdk/lib/async/zone.dart 1661:54 runUnary
dart-sdk/lib/async/future_impl.dart 163:18 handleValue
dart-sdk/lib/async/future_impl.dart 847:44 handleValueCallback
dart-sdk/lib/async/future_impl.dart 876:13 _propagateToListeners
dart-sdk/lib/async/future_impl.dart 652:5 [_completeWithValue]
dart-sdk/lib/async/future_impl.dart 722:7 callback
dart-sdk/lib/async/schedule_microtask.dart 40:11 _microtaskLoop
dart-sdk/lib/async/schedule_microtask.dart 49:5 _startMicrotaskLoop
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 181:7

SDK

➜ example git:(master) ✗ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.22.2, on macOS 14.5 23F79 darwin-arm64, locale en-IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.3)
[✓] VS Code (version 1.90.2)
[✓] Connected device (4 available)
[✓] Network resources

image

from flutterfire.

TarekkMA avatar TarekkMA commented on August 27, 2024

I couldn't get this issue to happen to the flutter auth example. How are you running the application? I'm using flutter run -d chrome

Here's my flutter version:

[✓] Flutter (Channel stable, 3.22.2, on macOS 14.5 23F79 darwin-arm64, locale en-EG)
    • Flutter version 3.22.2 on channel stable at /Users/tarekkma/Developer/Libs/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 761747bfc5 (3 weeks ago), 2024-06-05 22:15:13 +0200
    • Engine revision edd8546116
    • Dart version 3.4.3
    • DevTools version 2.34.3

from flutterfire.

TarekkMA avatar TarekkMA commented on August 27, 2024

I got this error while running on VSCode set to catch all exceptions, but the app seems to run normally without any issues.

from flutterfire.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.