Topic: Cannot find module '@angular/http'.
olaniyimoses pro asked 6 years ago
After creating new angular app (version 7). I have a pro bundle of MDB, so i install it via Gitlab and when i run my angular app using "ng serve -o, but i got error about "Cannot find module '@angular/http'." the error is as below:
ERROR in node_modules/ng-uikit-pro-standard/ng-uikit-pro-standard/pro/autocomplete/services/data-factory.service.d.ts(1,22): error TS2307: Cannot find module '@angular/http'.
node_modules/ng-uikit-pro-standard/ng-uikit-pro-standard/pro/autocomplete/services/remote-data.service.d.ts(1,47): error TS2307: Cannot find module '@angular/http'.
src/app/app.module.ts(2,22): error TS2307: Cannot find module '@angular/http'.
Damian Gemza staff answered 6 years ago
Dear @olaniyimoses
Please execute the npm install @angular/http command in your application terminal, and everything will be okay.
Best Regards,
Damian
ahess answered 6 years ago
I have done your suggestion but still not working(error compilation) I am using Angular 7 with MDB PRO
Damian Gemza staff answered 6 years ago
Dear @ahess
Could you please provide me with the code of those files: package.json, app.module.ts?
Also please provide me with the error code.
Best Regards,
Damian
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: 7.0.0
- Device: PC
- Browser: Chrome
- OS: Windows 10
- Provided sample code: No
- Provided link: No