Hi,
I’m Ionic serve -lsc and ionic cordova run android perfectly working and console in has not errors.
After run this commands “ionic cordova run android --prod”
Build successfull > Apk created successful > Device install successfull
but
Open blank screeen chrome inspect tool one error
cordova.js:1219 deviceready has not fired after 5 seconds.
cordova.js:1212 Channel not fired: onPluginsReady
cordova.js:1212 Channel not fired: onCordovaReady
cordova.js:1212 Channel not fired: onDOMContentLoaded
vendor.js:1 Uncaught Error: Cannot find module "."
at vendor.js:1
at vendor.js:1
at Object.<anonymous> (vendor.js:1)
at e (vendor.js:1)
at Object.366 (main.js:1)
at e (vendor.js:1)
at window.webpackJsonp (vendor.js:1)
at main.js:1
(anonymous) @ vendor.js:1
(anonymous) @ vendor.js:1
(anonymous) @ vendor.js:1
e @ vendor.js:1
366 @ main.js:1
e @ vendor.js:1
window.webpackJsonp @ vendor.js:1
(anonymous) @ main.js:1
vendor.js:1 Ionic Native: deviceready event fired after 1780 ms
Ionic:
ionic (Ionic CLI) : 4.9.0 (C:\Users\Mesut\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.2
Cordova:
cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : android 7.1.4
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.3.2, (and 8 other plugins)
System:
NodeJS : v10.14.2 (C:\Program Files\nodejs\node.exe)
npm : 4.6.1
OS : Windows 10
Package.json
{
"name": "test.ionic",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve"
},
"dependencies": {
"@angular/animations": "^7.1.4",
"@angular/common": "^7.1.4",
"@angular/compiler": "^7.1.4",
"@angular/compiler-cli": "^7.1.4",
"@angular/core": "^7.1.4",
"@angular/forms": "^7.1.4",
"@angular/http": "^7.1.4",
"@angular/platform-browser": "^7.1.4",
"@angular/platform-browser-dynamic": "^7.1.4",
"@ionic-native/core": "^4.18.0",
"@ionic-native/device": "^4.17.0",
"@ionic-native/firebase": "^4.18.0",
"@ionic-native/geolocation": "^4.18.0",
"@ionic-native/image-picker": "^4.18.0",
"@ionic-native/open-native-settings": "^4.18.0",
"@ionic-native/splash-screen": "^4.18.0",
"@ionic-native/status-bar": "^4.18.0",
"@ionic/storage": "^2.2.0",
"angularfire2": "^5.1.1",
"cordova-android": "^7.1.4",
"cordova-browser": "5.0.4",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-geolocation": "4.0.1",
"cordova-plugin-ionic-keyboard": "^2.1.3",
"cordova-plugin-ionic-webview": "^2.3.1",
"cordova-plugin-splashscreen": "^5.0.2",
"cordova-plugin-telerik-imagepicker": "~2.2.2",
"cordova-plugin-whitelist": "^1.3.3",
"cordova-sqlite-storage": "^2.6.0",
"firebase": "^5.7.2",
"ionic-angular": "3.9.2",
"ionic-native-http-connection-backend": "^4.0.8",
"ionicons": "^4.5.1",
"rxjs": "^6.3.3",
"rxjs-compat": "^6.3.3",
"sw-toolbox": "3.6.0",
"zone.js": "0.8.26"
},
"devDependencies": {
"@ionic/app-scripts": "3.1.11",
"@ionic/cli-plugin-proxy": "1.5.8",
"@ionic/lab": "^1.0.16",
"node-sass": "4.11.0",
"typescript": "^2.7.2"
},
"description": "An Ionic project",
"cordova": {
"plugins": {
"cordova-plugin-device": {},
"cordova-plugin-whitelist": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-ionic-webview": {},
"cordova-plugin-ionic-keyboard": {},
"cordova-sqlite-storage": {},
"cordova-plugin-telerik-imagepicker": {
"PHOTO_LIBRARY_USAGE_DESCRIPTION": "your usage message"
},
"cordova-plugin-geolocation": {
"GEOLOCATION_USAGE_DESCRIPTION": "To locate you"
},
"cordova-plugin-firebase": {},
"cordova-open-native-settings": {}
},
"platforms": [
"browser",
"android"
]
}
}