Update to angular 2.0.0-beta.17


#1

We are migrating a project from Ionic 1 and Ionic 2. In the app we are using translation. We are trying to use ng2-translate which requires 2.0.0-beta.16. Trying to update the package.json with

"angular2": "2.0.0-beta.17"

and running npm update fails because of dependency errors.

npm WARN unmet dependency /home/rust/Documents/coding/rust/lamb2/node_modules/ionic-native requires rxjs@'5.0.0-beta.2' but will load
npm WARN unmet dependency /home/rust/Documents/coding/rusticity/lamb2/node_modules/rxjs,
npm WARN unmet dependency which is version 5.0.0-beta.7
npm ERR! Linux 4.4.0-21-generic
npm ERR! argv "node" "/home/rusticity/.nvm/versions/node/v0.12.7/bin/npm" "update"
npm ERR! node v0.12.7
npm ERR! npm  v2.14.3
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package rxjs@5.0.0-beta.7 does not satisfy its siblings' peerDependencies requirements!

npm ERR! Please include the following file with any support request:
npm ERR!     /home/rusticity/Documents/coding/rust/lamb2/npm-debug.log

What would be the way to do it ? Wait for a new release of Ionic ?

Thanks a lot.


#2

I updated the sibling dependencies too in my own app yesterday. It seems to do the trick.


#3

How did you do that ?


#4

Oops I am sorry I just checked my dependencies again. I am running beta15 not 17.


#5

what did you write in package.json?
You should compare with this.

{
“dependencies”: {
“angular2”: “2.0.0-beta.15”,
“es6-shim”: “^0.35.0”,
“ionic-angular”: “2.0.0-beta.6”,
“ionic-native”: “^1.1.0”,
“ionicons”: “3.0.0-alpha.3”,
“rxjs”: “5.0.0-beta.2”
},
“devDependencies”: {
“del”: “2.2.0”,
“gulp”: “3.9.1”,
“gulp-watch”: “4.3.5”,
“ionic-gulp-browserify-typescript”: “^1.1.0”,
“ionic-gulp-fonts-copy”: “^1.0.0”,
“ionic-gulp-html-copy”: “^1.0.0”,
“ionic-gulp-sass-build”: “^1.0.0”,
“ionic-gulp-scripts-copy”: “^1.0.1”,
“run-sequence”: “1.1.5”
},
“cordovaPlugins”: [
“cordova-plugin-device”,
“cordova-plugin-console”,
“cordova-plugin-whitelist”,
“cordova-plugin-splashscreen”,
“cordova-plugin-statusbar”,
“ionic-plugin-keyboard”
],
“cordovaPlatforms”: [
“ios”,
{
“platform”: “ios”,
“version”: “”,
“locator”: “ios”
}
],
“name”: “cutepuppypics”,
“description”: “cutePuppyPics: An Ionic project”
}

or should check node & npm version. this package needs latest version.


#6

What i would need is

"angular2": "2.0.0-beta.16"

in your package.json you have

"angular2": "2.0.0-beta.15"


#7

sorry. but

“angular2”: “2.0.0-beta.15” → “angular2”: “2.0.0-beta.16”

is worked.


#8

As a note, you really should not be changing the angular dependencies yourself. The Ionic team will do this for you on every release as they need to test that everything is still functional across the new library versions.


#9

Please don’t update yet. There are several breaking changes between the releases that will break your app. We’re working on updating ionic2 to work with the newer releases of ng2, so please be patient.


Blank screen when trying to inject a service
#10

I’ll be patient. Thanks !