Angularfire: Build Failed in ionic 3/angular 5.x

Created on 14 Nov 2019  路  4Comments  路  Source: angular/angularfire

I've installed plugin in ionic 3 but after that build fails with these errors

** Output `[15:39:50] typescript: node_modules/firebase/index.d.ts, line: 4369
';' expected.

L4368:  gtagName?: string;
L4369:  /** Sets custom name for `dataLayer` array used by gtag. */
L4370:  dataLayerName?: string;

[15:39:50] typescript: node_modules/firebase/index.d.ts, line: 4369
'EventNameString' only refers to a type, but is being used as a value here.

L4368:  gtagName?: string;
L4369:  /** Sets custom name for `dataLayer` array used by gtag. */
L4370:  dataLayerName?: string;

[15:39:50] typescript: node_modules/firebase/index.d.ts, line: 4369
'never' only refers to a type, but is being used as a value here.

L4368:  gtagName?: string;
L4369:  /** Sets custom name for `dataLayer` array used by gtag. */     
L4370:  dataLayerName?: string;

[15:39:50] typescript: node_modules/firebase/index.d.ts, line: 4369
Cannot find name 'T'.

L4368:  gtagName?: string;
L4369:  /** Sets custom name for `dataLayer` array used by gtag. */ 
L4370:  dataLayerName?: string;

[15:39:50] ionic-app-script task: "build"
[15:39:50] Error: Failed to transpile program
Error: Failed to transpile program
at new BuildError (/home/himanshu/development/ionic/testfcm1/node_modules/@ionic/app-scripts/dist/util/errors.js:16:28)
at /home/himanshu/development/ionic/testfcm1/node_modules/@ionic/app-scripts/dist/transpile.js:159:20
at new Promise ()
at transpileWorker (/home/himanshu/development/ionic/testfcm1/node_modules/@ionic/app-scripts/dist/transpile.js:107:12)
at Object.transpile (/home/himanshu/development/ionic/testfcm1/node_modules/@ionic/app-scripts/dist/transpile.js:64:12)
at /home/himanshu/development/ionic/testfcm1/node_modules/@ionic/app-scripts/dist/build.js:109:82
[ERROR] An error occurred while running subprocess ionic-app-scripts.

    ionic-app-scripts build --target cordova --platform android exited with exit code 1.

    Re-running this command with the --verbose flag may provide more information.

` **

Most helpful comment

All 4 comments

me too facing same issue.

Tried npm i typescript@latest but no luck

@himanshu-itmca did you got any resolution?

I've got the same issue. Still any solutions ?

Not an AngularFire issue, rather looks like the types on the JS SDK.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fisherds picture fisherds  路  3Comments

StephenFluin picture StephenFluin  路  3Comments

Sun3 picture Sun3  路  3Comments

DennisSmolek picture DennisSmolek  路  3Comments

goekaypamuk picture goekaypamuk  路  3Comments