From:
"tns-core-modules": ">=2.1.0 || >=2.1.0-2016",
"nativescript-angular": "^0.2.0",
"@angular/common": "2.0.0-rc.3",
"@angular/compiler": "2.0.0-rc.3",
"@angular/core": "2.0.0-rc.3",
"@angular/http": "2.0.0-rc.3",
"@angular/platform-browser": "2.0.0-rc.3",
"@angular/platform-browser-dynamic": "2.0.0-rc.3",
"@angular/platform-server": "2.0.0-rc.3",
"@angular/router": "3.0.0-alpha.7",
To:
"tns-core-modules": ">=2.1.0",
"nativescript-angular": "^0.2.0",
"@angular/common": "2.0.0-rc.4",
"@angular/compiler": "2.0.0-rc.4",
"@angular/core": "2.0.0-rc.4",
"@angular/http": "2.0.0-rc.4",
"@angular/platform-browser": "2.0.0-rc.4",
"@angular/platform-browser-dynamic": "2.0.0-rc.4",
"@angular/platform-server": "2.0.0-rc.4",
"@angular/router": "3.0.0-beta.2",
removed platforms & node_modules
tns emulate ios
Error:
Jul 21 15:46:05[67136]: 1 0x42082c -[TNSRuntime executeModule:]
Jul 21 15:46:05[67136]: 2 0x5160b main
Jul 21 15:46:05[67136]: 3 0x3c9ca25 start
Jul 21 15:46:05[67136]: file:///app/tns_modules/nativescript-angular/router/ns-router.js:3:40: JS ERROR Error: Could not find module '@angular/router/common_router_providers'. Computed path '/Users/
/src/ is missing ? it should be '@angular/router/src/common_router_providers'
Hello @devna13
Currently, our stable release is working with rc.3
If you want to use rc.4 keep in mind that each release candidate from Angular is introducing a number of breaking changes so until we have adopted them in out release some unexpected behaviour can be expected.
However, if you want to experiment with rc4 you should also require the next release of tns-code-modules and nativescript-angular(not the latest stable). This can be achieved with the following command:
npm install tns-core-modules@next nativescript-angular@next --save
OR you can modify your _package.json_ like this:
"nativescript-angular": "next",
"tns-core-modules": "next"
If you prefer the second option you should clean your project from platforms and node_modules folders and rebuild
Thanks @NickIliev. great answer.
Most helpful comment
Hello @devna13
Currently, our stable release is working with rc.3
If you want to use rc.4 keep in mind that each release candidate from Angular is introducing a number of breaking changes so until we have adopted them in out release some unexpected behaviour can be expected.
However, if you want to experiment with rc4 you should also require the next release of
tns-code-modulesandnativescript-angular(not the latest stable). This can be achieved with the following command:OR you can modify your _package.json_ like this:
If you prefer the second option you should clean your project from platforms and node_modules folders and rebuild