It happen all of sudden…
what may be the problem ?
whole error message on console is
Cannot find the firebase namespace; be sure to include firebase-app.js before this library.
it works very well before .
tsconfig.json
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [
"dom",
"es2015"
],
"module": "es2015",
"moduleResolution": "node",
"sourceMap": true,
"target": "es5"
},
"include": [
"src/**/*.ts"
],
"exclude": [
"node_modules",
"src/**/*.spec.ts",
"src/**/__tests__/*.ts"
],
"compileOnSave": false,
"atom": {
"rewriteTsconfig": false
}
}
package.json
{
"name": "appNamefornojo",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"start": "ionic-app-scripts serve",
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint",
"sync-android": "cordova platform rm android && rm -rf platforms && cordova platform add android"
},
"dependencies": {
"@angular/animations": "5.2.11",
"@angular/common": "5.2.11",
"@angular/compiler": "5.2.11",
"@angular/compiler-cli": "5.2.11",
"@angular/core": "5.2.11",
"@angular/forms": "5.2.11",
"@angular/http": "^7.2.16",
"@angular/platform-browser": "5.2.11",
"@angular/platform-browser-dynamic": "5.2.11",
"@capacitor/android": "^2.2.0",
"@capacitor/core": "2.2.0",
"@ionic-native/badge": "^5.28.0",
"@ionic-native/calendar": "^5.22.0",
"@ionic-native/call-number": "^5.22.0",
"@ionic-native/camera": "^5.22.0",
"@ionic-native/core": "^5.19.1",
"@ionic-native/date-picker": "^5.23.0",
"@ionic-native/device": "^5.23.0",
"@ionic-native/diagnostic": "^5.23.0",
"@ionic-native/document-viewer": "^5.23.0",
"@ionic-native/fcm": "^5.27.0",
"@ionic-native/file": "^5.23.0",
"@ionic-native/file-opener": "^5.23.0",
"@ionic-native/file-transfer": "^5.23.0",
"@ionic-native/firebase": "^5.27.0",
"@ionic-native/http": "^4.20.0",
"@ionic-native/iamport-cordova": "^5.26.0",
"@ionic-native/image-picker": "^5.23.0",
"@ionic-native/in-app-browser": "^5.23.0",
"@ionic-native/mobile-accessibility": "^5.23.0",
"@ionic-native/onesignal": "^5.22.0",
"@ionic-native/photo-viewer": "^4.20.0",
"@ionic-native/splash-screen": "^5.0.0",
"@ionic-native/status-bar": "^5.0.0",
"@ionic-native/unique-device-id": "^5.28.0",
"@ionic/cli": "^6.10.1",
"@ionic/storage": "2.2.0",
"@types/hammerjs": "^2.0.36",
"android": "0.0.8",
"angularfire2": "^5.4.2",
"call-number": "^1.0.1",
"com-sarriaroman-photoviewer": "1.2.5",
"cordova": "^9.0.0",
"cordova-android": "8.1.0",
"cordova-android-play-services-gradle-release": "4.0.0",
"cordova-android-support-gradle-release": "^3.0.1",
"cordova-ios": "6.1.1",
"cordova-plugin-advanced-http": "^2.5.1",
"cordova-plugin-androidx": "^2.0.0",
"cordova-plugin-androidx-adapter": "^1.1.1",
"cordova-plugin-calendar": "^5.1.5",
"cordova-plugin-camera": "^4.1.0",
"cordova-plugin-datepicker": "^0.9.3",
"cordova-plugin-device": "git+https://github.com/apache/cordova-plugin-device.git",
"cordova-plugin-document-viewer": "^0.9.13",
"cordova-plugin-fcm-with-dependecy-updated": "2.4.0",
"cordova-plugin-file": "^6.0.2",
"cordova-plugin-file-opener2": "^3.0.0",
"cordova-plugin-file-transfer": "^1.7.1",
"cordova-plugin-inappbrowser": "^3.2.0",
"cordova-plugin-ionic-keyboard": "^2.2.0",
"cordova-plugin-ionic-webview": "^4.1.3",
"cordova-plugin-network-information": "git+https://github.com/apache/cordova-plugin-network-information.git",
"cordova-plugin-splashscreen": "^5.0.2",
"cordova-plugin-statusbar": "^2.4.2",
"cordova-plugin-telerik-imagepicker": "^2.3.3",
"cordova-plugin-whitelist": "^1.3.3",
"cordova.plugins.diagnostic": "^5.0.1",
"fcm-node": "^1.5.2",
"firebase": "^7.10.0",
"gradle": "^1.2.3",
"hammerjs": "^2.0.8",
"iamport-cordova": "^0.9.5",
"ionic": "^4.10.1",
"ionic-angular": "3.9.9",
"ionic-long-press": "^2.0.3",
"ionicons": "3.0.0",
"mx.ferreyra.callnumber": "0.0.2",
"native-run": "^1.0.0",
"ng2-pdf-viewer": "^6.2.0",
"ngx-pinch-zoom": "^2.4.4",
"phonegap-plugin-mobile-accessibility": "^1.0.5",
"phonegap-plugin-multidex": "^1.0.0",
"rebuild": "^0.1.2",
"rxjs": "6.5.4",
"rxjs-compat": "^6.5.5",
"sw-toolbox": "3.6.0",
"zone.js": "0.8.29"
},
"devDependencies": {
"@capacitor/cli": "2.2.0",
"@ionic/app-scripts": "3.2.4",
"typescript": "^3.7.4"
},
"description": "An Ionic project",
"cordova": {
"plugins": {
"cordova-plugin-whitelist": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-ionic-webview": {
"ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+"
},
"cordova-plugin-ionic-keyboard": {},
"cordova-plugin-camera": {
"ANDROID_SUPPORT_V4_VERSION": "27.+"
},
"mx.ferreyra.callnumber": {},
"cordova-plugin-calendar": {
"CALENDAR_USAGE_DESCRIPTION": " ",
"CONTACTS_USAGE_DESCRIPTION": " "
},
"cordova-plugin-datepicker": {},
"cordova-plugin-telerik-imagepicker": {
"PHOTO_LIBRARY_USAGE_DESCRIPTION": " "
},
"cordova-plugin-inappbrowser": {},
"phonegap-plugin-mobile-accessibility": {},
"cordova-plugin-document-viewer": {},
"cordova-plugin-file-transfer": {},
"cordova-plugin-file": {},
"cordova.plugins.diagnostic": {
"ANDROID_SUPPORT_VERSION": "28.+"
},
"cordova-plugin-file-opener2": {
"ANDROID_SUPPORT_V4_VERSION": "27.+"
},
"com-sarriaroman-photoviewer": {},
"cordova-plugin-advanced-http": {
"OKHTTP_VERSION": "3.10.0"
},
"call-number": {},
"cordova-android-support-gradle-release": {
"ANDROID_SUPPORT_VERSION": "26.+"
},
"cordova-android-play-services-gradle-release": {
"PLAY-SERVICES-ADS": "18.0.0",
"PLAY-SERVICES-ADS-IDENTIFIER": "17.0.0",
"PLAY-SERVICES-ADS-LITE": "18.0.0",
"PLAY-SERVICES-AFS-NATIVE": "17.0.0",
"PLAY-SERVICES-ANALYTICS": "17.0.0",
"PLAY-SERVICES-ANALYTICS-IMPL": "17.0.0",
"PLAY-SERVICES-APPINVITE": "18.0.0",
"PLAY-SERVICES-AUDIENCE": "17.0.0",
"PLAY-SERVICES-AUTH": "17.0.0",
"PLAY-SERVICES-AUTH-API-PHONE": "17.0.0",
"PLAY-SERVICES-AWARENESS": "17.0.0",
"PLAY-SERVICES-BASE": "17.0.0",
"PLAY-SERVICES-BASEMENT": "17.0.0",
"PLAY-SERVICES-CAST": "17.0.0",
"PLAY-SERVICES-CAST-FRAMEWORK": "17.0.0",
"PLAY-SERVICES-CLEARCUT": "17.0.0",
"PLAY-SERVICES-CRONET": "17.0.0",
"PLAY-SERVICES-DRIVE": "17.0.0",
"PLAY-SERVICES-FIDO": "18.0.0",
"PLAY-SERVICES-FITNESS": "17.0.0",
"PLAY-SERVICES-FLAGS": "17.0.0",
"PLAY-SERVICES-GAMES": "18.0.0",
"PLAY-SERVICES-GASS": "18.0.0",
"PLAY-SERVICES-GCM": "17.0.0",
"PLAY-SERVICES-IDENTITY": "17.0.0",
"PLAY-SERVICES-IID": "17.0.0",
"PLAY-SERVICES-INSTANTAPPS": "17.0.0",
"PLAY-SERVICES-LOCATION": "17.0.0",
"PLAY-SERVICES-MAPS": "17.0.0",
"PLAY-SERVICES-MEASUREMENT": "17.0.0",
"PLAY-SERVICES-MEASUREMENT-API": "17.0.0",
"PLAY-SERVICES-MEASUREMENT-IMPL": "17.0.0",
"PLAY-SERVICES-MEASUREMENT-SDK": "17.0.0",
"PLAY-SERVICES-MEASUREMENT-SDK-API": "17.0.0",
"PLAY-SERVICES-NEARBY": "17.0.0",
"PLAY-SERVICES-OSS-LICENSES": "17.0.0",
"PLAY-SERVICES-PANORAMA": "17.0.0",
"PLAY-SERVICES-PHENOTYPE": "17.0.0",
"PLAY-SERVICES-PLACES": "17.0.0",
"PLAY-SERVICES-PLACES-PLACEREPORT": "17.0.0",
"PLAY-SERVICES-PLUS": "17.0.0",
"PLAY-SERVICES-SAFETYNET": "17.0.0",
"PLAY-SERVICES-STATS": "17.0.0",
"PLAY-SERVICES-TAGMANAGER": "17.0.0",
"PLAY-SERVICES-TAGMANAGER-API": "17.0.0",
"PLAY-SERVICES-TAGMANAGER-V4-IMPL": "17.0.0",
"PLAY-SERVICES-TASKS": "17.0.0",
"PLAY-SERVICES-VISION": "18.0.0",
"PLAY-SERVICES-VISION-COMMON": "18.0.0",
"PLAY-SERVICES-VISION-IMAGE-LABEL": "18.0.0",
"PLAY-SERVICES-WALLET": "17.0.0",
"PLAY-SERVICES-WEARABLE": "17.0.0"
},
"phonegap-plugin-multidex": {},
"cordova-plugin-androidx": {},
"cordova-plugin-androidx-adapter": {},
"cordova-plugin-fcm-with-dependecy-updated": {}
},
"platforms": [
"android",
"ios"
]
}
}