Upgrading from beta.6


#1

Hello,

I have a production project in beta.6 that I haven’t touched in a while. My dependencies look like so:

"dependencies": {
    "angular2": "2.0.0-beta.15",
    "cordova-plugin-video-editor": "^1.0.9",
    "es6-shim": "^0.35.0",
    "ionic-angular": "2.0.0-beta.6-201604212137",
    "ionic-native": "^1.1.0",
    "ionicons": "3.0.0",
    "rxjs": "5.0.0-beta.2",
    "socket.io-client": "^1.4.6"
  },

I tried upgrading to .7 to eventually upgrade to the newest version of ionic but it seems all of the documentation (i.e. CHANGELOGS.md) from Github are no longer there?

Is there a better way to go about upgrading? I mean the only reason why I am upgrading is because the platform.ready().then() does not allow cordova to load before calling my geolocation cordova plugin causing a notification like:

"var/bundles/application/......../index.html" would like to use your location 

notification instead of:

"AppName" would like to use your location 

I have read quite a few forum posts but to my demise I haven’t found solutions that work so this is my last hope.

Best,
Aaron


#2

So I found the documentation here.

It seems as though after going through all of the instructions though to update to beta.7, zone and reflect are not being pulled into my www/build/js/ directory. Not that it matters, because development is now deprecated, but if anyone has better suggestions of how to get to the latest update, at least beta.9, without rebuilding the app that would be great.

Best,
Aaron


#3

It seems as though now gulp is looking for a src/init module that comes with beta.7. Does anyone happen to have a copy of this?


#4

The documentation is not that great, there are tons of drastic changes to the fundamental structure of this framework and it’s really hard to get an answer from the community. Not only that but live reloads over device should be immediate and it is for these reasons I will never use Ionic again. I am switching over to react-native.

EDIT: Actually the only reason I am far behind is because I started working on React Native projects and now I remember why.

Best,
Aaron


#5

Hey There! Sorry you had such a hard time keeping up. Beta6 was roughly 6 months ago, and as things were in beta, breaking changes were made as new APIs were introduced and new concepts were added as well. It’s the reason those releases were marked as “beta”.

While it is possible to upgrade from beta 6 to RC1, it is going to be challenging, especially with all the changes. We do include upgrade guide in our changelog:

But your best bet is to just do

npm install -g ionic
ionic start myApp --v2

And get a fresh starter. This will include all the necessary build tools and project structure that was worked on during the beta.

If you need to get work done, do what you got to do. Ionic will be here for you :smile: