4

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.

2

1 Answer 1

5

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

Update

As you are using Angular 5.6.0 it should be HttpClientModule since HttpModule is deprecated in previous versions of Angular

Sign up to request clarification or add additional context in comments.

2 Comments

OP is using angular 5.6.0 should not it be HttpClientModule since HttpModule is deprecated
yes @Vikas you are right , Thanks I'll Update my answer

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.