ionic2 增加了一个 provider 之后,运行显示
Runtime Error
Uncaught (in promise): Error: No provider for Headers! Error: No provider for Headers! at injectionError ( http://localhost:8100/build/vendor.js:1590:86) at noProviderError ( http://localhost:8100/build/vendor.js:1628:12) at ReflectiveInjector_._throwOrNull ( http://localhost:8100/build/vendor.js:3129:19) at ReflectiveInjector_._getByKeyDefault ( http://localhost:8100/build/vendor.js:3168:25) at ReflectiveInjector_._getByKey ( http://localhost:8100/build/vendor.js:3100:25) at ReflectiveInjector_.get ( http://localhost:8100/build/vendor.js:2969:21) at AppModuleInjector.get (ng:///AppModule/module.ngfactory.js:265:156) at AppModuleInjector.getInternal (ng:///AppModule/module.ngfactory.js:469:59) at AppModuleInjector.NgModuleInjector.get ( http://localhost:8100/build/vendor.js:3936:44) at resolveDep ( http://localhost:8100/build/vendor.js:11398:45)
这个错误
有没有老哥见过这个问题
1
yimity 2017-09-09 07:22:56 +08:00 via Android
app.module.ts 中有没有引入?
|
2
terencehyz OP @yimity 引入了…怕引入有问题删了重写了一次
|