cordova-plugin-firebase icon indicating copy to clipboard operation
cordova-plugin-firebase copied to clipboard

npm run build fails

Open KishoreKoushik opened this issue 5 years ago • 7 comments

I was doing RnD for push notifications. When I do npm run build I am getting below errors

[12:36:30] 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;

[12:36:30] 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;

[12:36:30] 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;

[12:36:30] 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;

To Reproduce Steps to reproduce the behavior:

  1. Create a new ionic 3 project
  2. Install below packages
ionic cordova plugin add cordova-plugin-firebase
npm install --save @ionic-native/firebase
npm install --save angularfire2 firebase
  1. Run npm run build
  2. You get the above error

You can find my code at https://github.com/KishoreKoushik/PushNotification.git

KishoreKoushik avatar Nov 12 '19 07:11 KishoreKoushik

i am facing the same error

AhsanSN avatar Nov 13 '19 15:11 AhsanSN

I got this error too. How can i solve this

SHROUD1995 avatar Nov 16 '19 13:11 SHROUD1995

Just install the latest version of typescript.

npm i typescript@latest

cool-projects avatar Nov 18 '19 21:11 cool-projects

Just install the latest version of typescript.

npm i typescript@latest

This worked.

AhsanSN avatar Nov 19 '19 04:11 AhsanSN

I am facing the same problem as I can solve this?

DiegoPeralta1987 avatar Dec 30 '19 01:12 DiegoPeralta1987

Diego use the command below to update to the latest typescript.

npm i typescript@latest

JosephRadebe avatar Jan 03 '20 12:01 JosephRadebe

work to me install firebase

npm i [email protected]

RonaldoJB45 avatar Jan 19 '20 03:01 RonaldoJB45