2017-05-09 100 views
0

我在創建角射擊應用程序時遇到了問題。我下面這個教程:https://progblog.io/Angular-2-Firebase-Tutorial-Part-1-Create-a-Firebase-3-CRUD-app-with-Angular-CLI/ 但只要我的角度,火添加到我不再能夠啓動「服務器」與NG發球,因爲我得到下面的異常應用程序:AngularFire沒有導出成員「InjectionToken」

ERROR in <PATH_TO_MY_PROJECT>/node_modules/angularfire2/angularfire2.d.ts (3,10): Module '"<PATH_TO_MY_PROJECT>/node_modules/@angular/core/index"' has no exported member 'InjectionToken' 
webpack: Failed to compile. 

燦有人告訴我可能是什麼原因? 我也嘗試過使用@Next版本的角火(npm i [email protected] --save),就像這裏指出的那樣:https://github.com/angular/angularfire2/issues/843但我沒有成功。

回答

-1
npm install angularfire2 

安裝類型火力

npm install typings 

typings install dt~firebase --global --save 
相關問題