当我在angular ng serve中运行cmd时,应用程序停止加载,并且出现以下错误。
错误错误:未捕获(承诺):错误:StaticInjectorError(AppModule)[AuthService-> Http]:StaticInjectorError(平台:core)[AuthService-> Http]:NullInjectorError:没有Http的提供者!错误:StaticInjectorError(AppModule)[AuthService-> Http]:StaticInjectorError(平台:core)[AuthService-> Http]:NullInjectorError:没有Http的提供程序!在NullInjector.push ../ node_modules/@angular/core/fesm5/core.js.NullInjector.get(core.js:979)在resolveToken(core.js:1232)