NativeScript / NativeScript/firebase

[firebase-core]: Unable to Initialize Firebase App

オープン
#154 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
TypeScript
スター
62
フォーク
53
平均マージ
8日 4時間
マージ済み PR(30日)
2

説明

Hello Team,
Can you assist with the error below, when trying to initialize the firebase app from the firebase-core?
Here is how I am initializing it

export class AppComponent implements OnInit {

    ngOnInit(): void {
        firebase().initializeApp().then((app) => {
            console.log(app);
        })
    }

}

Here is the error that shows up

JS: Error: Cannot read property 'FirebaseApp' of undefined
JS:     at file: src/webpack:/testapp/node_modules/@nativescript/firebase-core/index.android.js:295:0
JS:     at new ZoneAwarePromise (file: src/webpack:/testapp/node_modules/zone.js/fesm2015/zone.js:1429:0)
JS:     at Firebase.initializeApp (file: src/webpack:/testapp/node_modules/@nativescript/firebase-core/index.android.js:234:0)
JS:     at AppComponent.ngOnInit (file: src/webpack:/testapp/src/app/app.component.ts:6:16)
JS:     at callHook (file: src/webpack:/testapp/node_modules/@angular/core/fesm2015/core.mjs:2491:0)
JS:     at callHooks (file: src/webpack:/testapp/node_modules/@angular/core/fesm2015/core.mjs:2460:0)
JS:     at executeInitAndCheckHooks (file: src/webpack:/testapp/node_modules/@angular/core/fesm2015/core.mjs:2411:0)
JS:     at refreshView (file: src/webpack:/testapp/node_modules/@angular/core/fesm2015/core.mjs:11971:0)
JS:     at detectChangesInternal (file: src/webpack:/testapp/node_modules/@angular/core/fesm2015/core.mjs:13174:0)
JS:     at RootViewRef.detectChanges (file:///data/data/org.nativescript.testapp/fi...

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず src/app/app.component.ts の初期化を再現し、node_modules/@nativescript/firebase-core/index.android.js にある失敗している Firebase.initializeApp のパスを調査します。特に、報告されている FirebaseApp へのアクセスを確認してください。Android 固有の失敗を追跡する前に、プロジェクトの NativeScript と Firebase のセットアップを確認します。報告されている undefined FirebaseApp エラーなしでアプリが正常に初期化されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, firebase, typescript
領域
backend, mobile
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
20/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。