-
-
Notifications
You must be signed in to change notification settings - Fork 240
Closed
Description
Upgraded some libraries and now i get this error:
StaticInjectorError[Http]:
StaticInjectorError[Http]:
NullInjectorError: No provider for Http!
here's my app.module.js, you'll see that NativeScriptHttpModule is imported as expected:
import {NgModule, NO_ERRORS_SCHEMA} from "@angular/core";
import {NativeScriptModule} from "nativescript-angular/nativescript.module";
import {NativeScriptFormsModule} from "nativescript-angular/forms";
import {NativeScriptHttpModule} from "nativescript-angular/http";
import {
DeviceService,
DirectionsService,
ParamsService,
ShuttleRideService,
ShuttleService,
StationService
} from "@suna/quickride-ts-libcore";
import {
ActionBarLarge,
AppRoutingModule,
ConnectionInfo,
ConnectivityService,
EnRoutePage,
LocationService,
LoginPage,
NotificationHandler,
RideListItem,
RideListPage,
RouterData,
ShuttleListItem,
ShuttleListPage,
TaskPage
} from "./quickride";
import {AppComponent} from "./app.component";
@NgModule({
bootstrap: [AppComponent],
imports: [
NativeScriptModule,
NativeScriptFormsModule,
NativeScriptHttpModule,
AppRoutingModule
],
declarations: [
ActionBarLarge,
RideListItem,
ShuttleListItem,
NotificationHandler,
ConnectionInfo,
AppComponent,
LoginPage,
ShuttleListPage,
RideListPage,
EnRoutePage,
TaskPage
],
providers: [
RouterData,
DirectionsService,
ShuttleService,
ShuttleRideService,
StationService,
DeviceService,
LocationService,
ConnectivityService,
ParamsService
],
schemas: [
NO_ERRORS_SCHEMA
]
})
export class AppModule {
}
Metadata
Metadata
Assignees
Labels
No labels