Blank/empty page when loading app in Ionic View (Pro)

The login page loads fine with ionic serve when running locally. But when deploying the app in Ionic View(Pro), the app loads an empty page. I enabled the monitoring in the app and found the error is “Uncaught (in promise): cordova_not_available”. So I tried to load the app via ionic serve locally but I don’t see the error in console. Any thoughts?

Are you doing any additional Cordova plugin stuff in your app?

I got this fixed. I ran ionic build on the project directory and saw that there was an error “Module not found: Error: Can’t resolve ‘promise-polyfill’…”. The fix for this error was to run npm install promise-polyfill --save-exact. (Ref: https://github.com/ionic-team/ionic-app-scripts/issues/1001)

So I did another git push ionic master and deploy the app. App is now loading in Ionic View in my device.

FYI to anyone who might encounter same issue.

1 Like