Has no exported member 'InjectionToken'

自闭症网瘾萝莉.ら 提交于 2020-01-15 03:33:12

问题


I am building an Angular2 app with firebase. The problem is that the entire application is working fine in Visual Studio Code but not in c9, even though my procedure of installing all the packages is the same. In c9 I am getting the error :

ERROR in /home/ubuntu/workspace/map-report/node_modules/angularfire2/app/firebase.app.module.d.ts (1,10): Module '"/home/ubuntu/workspace/map-report/node_modules/@angular/core/index"' has no exported member 'InjectionToken'.

ERROR in /home/ubuntu/workspace/map-report/node_modules/angularfire2/angularfire2.d.ts (3,10): Module '"/home/ubuntu/workspace/map-report/node_modules/@angular/core/index"' has no exported member 'InjectionToken'.

I have copy-pasted all the code from my functional code in VS Code to c9, but even then I am getting this error. Can't understand what is the problem.

Any help would be greatly appreciated. Thanks.

来源:https://stackoverflow.com/questions/45668119/has-no-exported-member-injectiontoken

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!