TonyLeeli 2018-04-18 03:06 采纳率: 0%
浏览 1430
已结题

No provider for t! Angular2

Angular2 ng build --prod 打包之后 报 No provider for t 和DI error?
什么原因

 vendor.a4f2937d198a01d8de37.bundle.js:1 EXCEPTION: No provider for t!
t.handleError @ vendor.a4f2937d198a01d8de37.bundle.js:1
vendor.a4f2937d198a01d8de37.bundle.js:1 ORIGINAL STACKTRACE:
t.handleError @ vendor.a4f2937d198a01d8de37.bundle.js:1
vendor.a4f2937d198a01d8de37.bundle.js:1 Error: DI Error
    at e.Q (polyfills.5b826f1d9b2e8aaeb704.bundle.js:1)
    at e [as constructor] (vendor.a4f2937d198a01d8de37.bundle.js:1)
    at e [as constructor] (vendor.a4f2937d198a01d8de37.bundle.js:1)
    at new e (vendor.a4f2937d198a01d8de37.bundle.js:1)
    at t._throwOrNull (vendor.a4f2937d198a01d8de37.bundle.js:1)
    at t._getByKeyDefault (vendor.a4f2937d198a01d8de37.bundle.js:1)
    at t._getByKey (vendor.a4f2937d198a01d8de37.bundle.js:1)
    at t.get (vendor.a4f2937d198a01d8de37.bundle.js:1)
    at t.get [as _CookieService_61] (main.21f8a24b0cd766378077.bundle.js:1)
    at t.getInternal (main.21f8a24b0cd766378077.bundle.js:1)
    at t.e.get (vendor.a4f2937d198a01d8de37.bundle.js:1)
    at t.injectorGet (vendor.a4f2937d198a01d8de37.bundle.js:1)
    at t.createInternal (main.21f8a24b0cd766378077.bundle.js:1)
    at t.createHostView (vendor.a4f2937d198a01d8de37.bundle.js:1)
    at t.create (vendor.a4f2937d198a01d8de37.bundle.js:1)
t.handleError @ vendor.a4f2937d198a01d8de37.bundle.js:1
vendor.a4f2937d198a01d8de37.bundle.js:1 EXCEPTION: Uncaught (in promise): Error: DI Error
Error: DI Error
    at e.Q (http://localhost:6611/polyfills.5b826f1d9b2e8aaeb704.bundle.js:1:52064)
    at e [as constructor] (http://localhost:6611/vendor.a4f2937d198a01d8de37.bundle.js:1:575972)
    at e [as constructor] (http://localhost:6611/vendor.a4f2937d198a01d8de37.bundle.js:1:521461)
    at new e (http://localhost:6611/vendor.a4f2937d198a01d8de37.bundle.js:1:521792)
    at t._throwOrNull (http://localhost:6611/vendor.a4f2937d198a01d8de37.bundle.js:1:447766)
    at t._getByKeyDefault (http://localhost:6611/vendor.a4f2937d198a01d8de37.bundle.js:1:448104)
    at t._getByKey (http://localhost:6611/vendor.a4f2937d198a01d8de37.bundle.js:1:447485)
    at t.get (http://localhost:6611/vendor.a4f2937d198a01d8de37.bundle.js:1:445852)
    at t.get [as _CookieService_61] (http://localhost:6611/main.21f8a24b0cd766378077.bundle.js:1:785802)
    at t.getInternal (http://localhost:6611/main.21f8a24b0cd766378077.bundle.js:1:789013)
    at t.e.get (http://localhost:6611/vendor.a4f2937d198a01d8de37.bundle.js:1:476278)
    at t.injectorGet (http://localhost:6611/vendor.a4f2937d198a01d8de37.bundle.js:1:201539)
    at t.createInternal (http://localhost:6611/main.21f8a24b0cd766378077.bundle.js:1:760283)
    at t.createHostView (http://localhost:6611/vendor.a4f2937d198a01d8de37.bundle.js:1:201074)
    at t.create (http://localhost:6611/vendor.a4f2937d198a01d8de37.bundle.js:1:565259)****
  • 写回答

3条回答 默认 最新

  • 「已注销」 2018-04-18 03:08
    关注

    内存溢出了,请看代码。

    评论

报告相同问题?

悬赏问题

  • ¥15 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置