From within your groceries folder you just need to run the following commands to update the version.
$ npm install -g npm-check-updates
$ npm-check-updates -u
$ npm install
When package.json updated to the following it worked for me
"dependencies": {
"@angular/common": "2.0.0-rc.5",
"@angular/compiler": "2.0.0-rc.5",
"@angular/core": "2.0.0-rc.5",
"@angular/http": "2.0.0-rc.5",
"@angular/platform-browser": "2.0.0-rc.5",
"@angular/platform-browser-dynamic": "2.0.0-rc.5",
"@angular/platform-server": "2.0.0-rc.5",
"@angular/router": "3.0.0-rc.1",
"tns-core-modules": "2.2.1",
"nativescript-angular": "0.3.1"
},
If you compare the version you will see that NS _HTTP_PROVIDERS is within the current master but not version 2.0.0 that is included with the sample
https://github.com/NativeScript/nativescript-angular/blob/master/nativescript-angular/http/ns-http.ts
npm i
? – Hilaritynativescript-angular
do you have installed? Do you get this error when you runtsc
ortns build
? Sometimes the intellisense just gets a bit confused. I'd also try deleting and reinstalling the node_modules just to be sure nothing is corrupted. Also, what OS are you working on? – Hilarityplatforms
,hooks
andnode_modules
and runningnpm install
again. – Tav