What is difference between 2.0.0-beta.19 and 2.0.0-beta.25?


#1

I have code written with IONIC 2.0.0-beta.19.
I updated it to the latst IONIC 2.0.0-beta.25, but my whole project stops working and gives many syntax error.
Some of errors at these lines:

export class Login {
  userForm: any;
  constructor(nav: NavController, params: NavParams, commonService:CommonService, platform: Platform)
}

These declaration is not working in latest build.

export class SingletonService
{
    static instance:SingletonService;
    static isCreating:Boolean = false;
    access_token: String;
    user_id: String;
}

It is also not working.

Please help me to resolve it.
Thanks in advance.


#2

Math is hard, but if I use my fingers and toes I come up with 6.

I’m guessing much of your problem lies in framework beta updates rather than the CLI which is what you’re talking about with beta.19 & beta.20.

Take a look at the changelog for breaking changes: https://github.com/driftyco/ionic/blob/2.0/CHANGELOG.md

Type ‘ionic info’ and post that, it’ll make answering your questions easier.


#3

I just want to chime in here.

ionic2.0.0-beta.19 and ionic2.0.0-beta.25 refers to the ionic-cli

The changelog that has been linked to is the SDK, ionic-angular, which is currently in beta6


#4

In my admittedly short time watching this forum, it seems 9 times out of 10 people fixate on the CLI version when they should be paying more attention to the framework version, but I think this is the 1 in 10 where it really is the CLI no longer using tsc to process JavaScript, causing type declarations to now error where they didn’t before.