Upgrade ionic2 and got Promise Rejection Error, how can I debug?


#1

Hey there,

I juste upgrade my ionic 2 version and now when I want to “ionic serve” I get this error :

(node:29658) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property ‘content’ of null

My project is a quite big and the error is not really helpful. How can I debug my project efficiently ?

Thanks,
Charly


#2

Are you using the newest ionic-app-scripts version? check your package.json.


#3

Yes :

“scripts”: {
“clean”: “ionic-app-scripts clean”,
“build”: “ionic-app-scripts build”,
“ionic:build”: “ionic-app-scripts build”,
“ionic:serve”: “ionic-app-scripts serve”
}


#4

i mean are you using the latest version of app-scripts

"devDependencies": {
    "@ionic/app-scripts": "1.0.0",
    ...
}

#5

noooooo

"devDependencies": {
    "@ionic/app-scripts": "0.0.47",
    "typescript": "2.0.9"
  }