Error load resources in ionic 4 run android or ios

Hi, I’ve got a project that works ok in browser, with ionic serve, but in devices it shows a blank page. In Android and in iOS. When I debug with Chrome or Safari, the problem is the same

runtime.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
styles.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
polyfills.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
cordova.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
vendor.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
main.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
/assets/icon/favicon.png:1 Failed to load resource: net::ERR_FILE_NOT_FOUND

In Safari, errors are the same. My app:`

Ionic:

ionic (Ionic CLI) : 4.10.2 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.1.1
@angular-devkit/build-angular : 0.13.5
@angular-devkit/schematics : 7.2.4
@angular/cli : 7.3.5
@ionic/angular-toolkit : 1.4.0

Cordova:

cordova (Cordova CLI) : 7.0.1
Cordova Platforms : android 7.1.0, ios 4.4.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.0.0, (and 6 other plugins)

System:

Android SDK Tools : 26.1.1 (/Users/Ruben/Library/Android/sdk/)
ios-deploy : 1.9.4
NodeJS : v8.12.0 (/Users/ruben/.nvm/versions/node/v8.12.0/bin/node)
npm : 6.4.1
OS : macOS High Sierra
Xcode : Xcode 10.1 Build version 10B61`

I’ve been reading about some similars problems, and tryed to remove platforms, and add again. Also if I try to emulate iOS, the same blank page.
Thank you,

1 Like

@rubenmgar Did you ever resolve this? I am facing the same issue.

@rubenmgar @Tgure I have the same problem. @rubenmgar Have you solved it?

Hi @Tgure @kedavidsa, I didn’t find a way to solve it… So what I did, was package the app, and copy it by adb or Xcode.

I found for me it was caused by a bad plugin, the cordova-background-mode-plugin when removed allowed the app to function again.