Topic: Cannot find module '@angular/http' ng-uikit-pro-standard ?
I am getting this error:
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'.
//data-factory.services.d.ts
import { Http } from '@angular/common/http';
//remote-data.service.d.ts
import { Http, Headers, RequestOptions } from '@angular/http';
Not an expert but isnt this the way you should be importing Http:
import { HttpClientModule } from '@angular/common/http';
I npm install ng-uikit-pro-standard access token from my gitlab.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: 7.0.0
- Device: pc
- Browser: cli
- OS: ubuntu
- Provided sample code: No
- Provided link: No
jamar commented 6 years ago
npm install @angular/http@latest fixed the issue.