0
我聲明的命名空間,如:未捕獲的ReferenceError:FirebaseApp沒有定義或未捕獲的ReferenceError:火力點沒有定義
declare namespace firebase.database.ServerValue {
var TIMESTAMP: any
}
,並收到此錯誤
Uncaught ReferenceError: firebase is not defined
declare namespace FirebaseApp.Timestamp{
var TIMESTAMP: any;
}
,並得到錯誤:
Uncaught ReferenceError: FirebaseApp is not defined
angularFire2和火力版本:
"angularfire2": "^4.0.0-rc.1",
"firebase": "^4.1.3",
cli packages:
@ionic/cli-plugin-cordova : 1.5.0 (C:\....\node_modules\@ionic\cli-plugin-cordova) @ionic/cli-plugin-ionic-angular : 1.4.0 (C:\....\node_modules\@ionic\cli-plugin-ionic-angular) @ionic/cli-utils : 1.6.0 (C:\....\node_modules\@ionic\cli-utils) ionic (Ionic CLI) : 3.6.0 (C:\....\node_modules\ionic)
global packages:
Cordova CLI : 7.0.1
local packages:
@ionic/app-scripts : 2.1.4 Cordova Platforms : android 6.3.0 Ionic Framework : ionic-angular 3.6.0
System:
Android SDK Tools : 25.2.5 Node : v6.11.1 OS : Windows 7 npm : 5.1.0
如何解決這些問題?因爲我想通過聲明上面提到的任何名稱空間來獲取TIMESTEMP的值。