I'm using jhipster to develop a Spring-Boot+Angular app. However, I'm getting this error while using primeng 5.6.0 with angular 5.6.0 in my project:
ERROR in [at-loader] ./src/main/webapp/app/primeng/data/datascroller/datascrollerdemo.module.ts:4:28 TS2307: Cannot find module '@angular/http'.
Any help would be approeciated.
Run the command
npm install @angular/http --save
and restart your application.
Basically, there is HTTP package is missing in your project so it is throwing this error
As you are using Angular 5.6.0 it should be HttpClientModule
since HttpModule
is deprecated in previous versions of Angular
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.