简体   繁体   中英

Angular2 Meteor Uncaught no provider for ApplicationRef

Starting up my application gives this error:

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

the volunteers.ts:95 is the last file in my /collections/ folder. When I delete volunteers.ts it jumps to the next last file in that folder.

I'm not sure what the errors above that line are referring to.

Suggestions?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM