Failed to transpile program. Error


#1

I have tryed to upgrade and downgrade my Ionic Cli (3.15.1) and AngularFire2 (4.0.0rc0), but not solved. I find at google and facebook groups but anyone know how to solve.

  • ionic cordova run android

Error: Failed to transpile program
[DEBUG] Error: Failed to transpile program
at new BuildError
(/home/emannuell/salvanota/newapp/salvanota/node_modules/@ionic/app-scripts/dist/util/errors.js:16:28)
at
/home/emannuell/salvanota/newapp/salvanota/node_modules/@ionic/app-scripts/dist/transpile.js:159:20
at transpileWorker
(/home/emannuell/salvanota/newapp/salvanota/node_modules/@ionic/app-scripts/dist/transpile.js:107:12)
at Object.transpile
(/home/emannuell/salvanota/newapp/salvanota/node_modules/@ionic/app-scripts/dist/transpile.js:64:12)
at
/home/emannuell/salvanota/newapp/salvanota/node_modules/@ionic/app-scripts/dist/build.js:106:82

  • ionic info

cli packages: (/usr/local/lib/node_modules)

@ionic/cli-utils  : 1.9.1
ionic (Ionic CLI) : 3.9.1

global packages:

Cordova CLI : 7.0.1 

local packages:

@ionic/app-scripts : 3.0.1
Cordova Platforms  : android 6.2.3
Ionic Framework    : ionic-angular 3.6.1

System:

Android SDK Tools : 26.0.2
Node              : v7.10.0
npm               : 4.2.0 
OS                : Linux 4.10

package.json

“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": “^4.0.0”,
"@angular/common": “4.1.3”,
"@angular/compiler": “4.1.3”,
"@angular/compiler-cli": “4.1.3”,
"@angular/core": “4.1.3”,
"@angular/forms": “4.1.3”,
"@angular/http": “4.1.3”,
"@angular/platform-browser": “4.1.3”,
"@angular/platform-browser-dynamic": “4.1.3”,
"@ionic-native/barcode-scanner": “^4.2.1”,
"@ionic-native/core": “3.12.1”,
"@ionic-native/device": “^4.2.1”,
"@ionic-native/firebase-analytics": “^4.2.1”,
"@ionic-native/native-storage": “^4.3.0”,
"@ionic-native/social-sharing": “^4.2.1”,
"@ionic-native/splash-screen": “3.12.1”,
"@ionic-native/status-bar": “3.12.1”,
"@ionic/app-scripts": “^3.0.0”,
"@ionic/storage": “2.0.1”,
"@types/jasmine": “^2.6.2”,
“angularfire2”: “^5.0.0-rc.3”,
“cordova-android”: “^6.2.3”,
“cordova-plugin-compat”: “^1.1.0”,
“cordova-plugin-device”: “^1.1.4”,
“cordova-plugin-firebase-analytics”: “^0.11.0”,
“cordova-plugin-nativestorage”: “^2.2.2”,
“cordova-plugin-splashscreen”: “^4.0.3”,
“cordova-plugin-statusbar”: “^2.2.2”,
“cordova-plugin-whitelist”: “^1.3.1”,
“cordova-plugin-x-socialsharing”: “^5.2.0”,
“cordova-support-google-services”: “^1.0.0”,
“css-animator”: “^2.1.1”,
“es6-promise-plugin”: “^4.1.0”,
“firebase”: “^4.6.0”,
“ionic-angular”: “3.6.1”,
“ionic-plugin-keyboard”: “^2.2.1”,
“ionicons”: “3.0.0”,
“phonegap-plugin-barcodescanner”: “^6.0.8”,
“rxjs”: “5.4.0”,
“sw-toolbox”: “3.6.0”,
“web-animations-js”: “^2.3.1”,
“zone.js”: “0.8.12”
},
“devDependencies”: {
"@ionic/app-scripts": “^3.0.0”,
“typescript”: “2.3.4”
},
“description”: “An Ionic project”,
“cordova”: {
“plugins”: {
“cordova-plugin-device”: {},
“cordova-plugin-splashscreen”: {},
“cordova-plugin-statusbar”: {},
“cordova-plugin-whitelist”: {},
“ionic-plugin-keyboard”: {},
“phonegap-plugin-barcodescanner”: {},
“cordova-plugin-firebase-analytics”: {},
“cordova-plugin-x-socialsharing”: {},
“cordova-plugin-nativestorage”: {}
},
“platforms”: [
“android”
]
}