Angular2 Meteor没有提供ApplicationRef的提供程序

时间:2016-08-29 20:24:25

标签: angular angular-bootstrap angular2-meteor

启动我的应用程序会出现此错误:

Uncaught No provider for ApplicationRef! ReflectiveInjector_._throwOrNull @ reflective_injector.js:786 ReflectiveInjector_._getByKeyDefault @ reflective_injector.js:814 ReflectiveInjector_._getByKey @ reflective_injector.js:777 ReflectiveInjector_.get @ reflective_injector.js:586 MeteorApp.bootstrap @ meteor_app.js:54 bootstrap @ bootstrap.js:9 meteorInstall.client.main.js @ main.ts:7 fileEvaluate @ install.js:153 require @ install.js:82 (anonymous function) @ volunteers.ts:95

volunteers.ts:95是我/collections/文件夹中的最后一个文件。当我删除volunteers.ts时,它会跳转到该文件夹​​中的下一个最后一个文件。

我不确定该行上方的错误是指什么。

建议?

1 个答案:

答案 0 :(得分:0)

你能提供你的package.json,我怀疑是否安装了一些较新的软件包导致问题,请尝试从package.json中删除一些^,再次运行meteor npm install并查看错误如何变成: - /

相关问题