ERROR Error: StaticInjectorError(AppModule)[UserformService -> HttpClient]:

前端 未结 9 1270
一整个雨季
一整个雨季 2021-02-03 17:55

While trying to add a PrimeNG table I broke my build here: https://github.com/BillyCharter87/Tech-O-Dex-UI/tree/BrokeIt

I recall updating my package.json fr

9条回答
  •  面向向阳花
    2021-02-03 18:01

    There are two reasons for this error

    1) In the array of import if you imported HttpModule twice

    2) If you haven't import:

    import { HttpModule, JsonpModule } from '@angular/http'; 
    

    If you want then run:

    npm install @angular/http

提交回复
热议问题