AlertController Not Found

Hello, i am using ionic2@beta version 35.
I am trying to use an alertbox but i keep getting 'Error TS2305: Module ‘"/home/webshinobis/boom/node_modules/ionic-angular/index"’ has no exported member ‘AlertController’. This is my code for the alert service:

`import {AlertController} from ‘ionic-angular’;

export class alert{

optionsBoxOpen:boolean;
optionsBoxData:any;

constructor(private alertController: AlertController){
}

showCheckbox() {
let alert = this.alertController.create();
alert.setTitle(‘Which planets have you visited?’);

alert.addInput({
  type: 'checkbox',
  label: 'Alderaan',
  value: 'value1',
  checked: true
});

alert.addInput({
  type: 'checkbox',
  label: 'Bespin',
  value: 'value2'
});

alert.addButton('Cancel');
alert.addButton({
  text: 'Okay',
  handler: data => {
    console.log('Checkbox data:', data);
    this.optionsBoxOpen = false;
    this.optionsBoxData = data;
  }
});
alert.present();

}
}`

The alert is being injected instead of created from a static method. This seems to be the behavior of Ionic 2 beta 11, the current ionic version. Maybe your yonic version is not updated.

I’m also not able to import AlertController. From what I can tell I’m using as current as I can be for beta11, checking my package.json against the beta11 sample apps, and also using the upgrade guide to go from beta10 to 11.

I am also facing the same issue. my ionic version is 2.0.0-beta.36.

AlertController is not available in ionic-angular

I had the same issue with ToastController, I checked ‘ionic info’ and I saw that even I followed the update line they provided in changelogs, ionic was missing, so it stayed in beta.10, I manually updated package.json to

“ionic-angular”: “2.0.0-beta.11”,

and hit npm install, and running ionic info again shows new beta.11 and now overlay component get exposed.

hope it helps
davor