Alert Crashes the app in some pages


let alert = Alert.create({
message: ‘Sample Message’,
buttons: [{
text: ‘OK’,
handler: () => {


Do you have a console log ? Which version it is ? Is nav and Alert defined in the pages where it crashes ?


Thank you for the reply. I think console log is not the problem. I define nav and Alert in that pages.

Version Details :
“dependencies”: {
"@angular/common": “2.0.0-rc.4”,
"@angular/compiler": “2.0.0-rc.4”,
"@angular/core": “2.0.0-rc.4”,
"@angular/forms": “0.2.0”,
"@angular/http": “2.0.0-rc.4”,
"@angular/platform-browser": “2.0.0-rc.4”,
"@angular/platform-browser-dynamic": “2.0.0-rc.4”,
“es6-shim”: “^0.35.0”,
“ionic-angular”: “2.0.0-beta.10”,
“ionic-native”: “1.3.2”,
“ionicons”: “3.0.0”,
“ng2-charts”: “^1.3.0”,
“reflect-metadata”: “^0.1.3”,
“rxjs”: “5.0.0-beta.6”,
“zone.js”: “^0.6.12”
Same code is working in some pages and crashes in some pages.