I am following the NativeScript tutorial here:
Native Script Angular - Chapter 3
I'm having an error when trying to import nativescript-angular/http
. it says Cannot find module 'nativescript-angular/http'. Am I missing anything? I noticed that there is not http.js
under node_modules/native-script-angular/http.js.
Any help would be appreciated.
I am pretty sure that the version of Angular you are using are no longer support 'http'
service, try to use 'http-client'
instead.
import { NativeScriptHttpClientModule } from "nativescript-angular/http-client";
Or use Angular version 5 or older.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With