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)****