我正在嘗試在Angular 4中設置一個新網站。我想使用Firebase作爲數據庫後端。Angular 4與AngularFire2
我使用的是安裝指南這裏找到:https://github.com/angular/angularfire2/blob/master/docs/1-install-and-setup.md
然而,當我執行ng serve --open
我收到此錯誤:
ERROR in Error encountered resolving symbol values statically. Calling function 'OpaqueToken', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol FirebaseUserConfig in C:/Source/node_modules/angularfire2/tokens.d.ts, resolving symbol AngularFireModule.initializeApp in C:/Source/node_modules/angularfire2/angularfire2.d.ts, resolving symbol AppModule in C:/Source/src/app/app.module.ts, resolving symbol AppModule in C:/Source/src/app/app.module.ts
正如我寧願用角一個新手,我不知道如何解決這個錯誤。
詳見本期https://開頭的github .com/angular/angularfire2/issues/843 –
'npm uninstall firebase angularfire2 --save' 'npm install firebase angularfire2 --save' 似乎解決了現在的問題。有沒有人有任何ETA的時候AngularFire2會正式支持Angular 4? –