将我的应用程序从Angular 5.2.10迁移到6.0.9时出现错误。我使用了here
所述的迁移步骤Error: StaticInjectorError(AppModule)[ApplicationRef -> Injector]:
StaticInjectorError(Platform: core)[ApplicationRef -> Injector]:
NullInjectorError: No provider for Injector!
at NullInjector.push../node_modules/@angular/core/fesm5/core.js.NullInjector.get (core.js:1034)
at resolveToken (core.js:1271)
at tryResolveToken (core.js:1216)
at StaticInjector.push../node_modules/@angular/core/fesm5/core.js.StaticInjector.get (core.js:1113)
at resolveToken (core.js:1271)
at tryResolveToken (core.js:1216)
at StaticInjector.push../node_modules/@angular/core/fesm5/core.js.StaticInjector.get (core.js:1113)
at resolveNgModuleDep (core.js:8161)
at _createClass (core.js:8208)
at _createProviderInstance (core.js:8178)
错误消息屏幕截图
角度版本:6.0.9
浏览器:
其他信息: