angularfire icon indicating copy to clipboard operation
angularfire copied to clipboard

export 'InjectionToken' was not found in '@angular/core'

Open Awadhesh31 opened this issue 9 years ago • 12 comments

WARNING in ./~/angularfire2/angularfire2.js 3:26-40 "export 'InjectionToken' was not found in '@angular/core'

WARNING in ./~/angularfire2/app/firebase.app.module.js 3:40-54 "export 'InjectionToken' was not found in '@angular/core' webpack: Compiled with warnings.

in every project same problem coming

Awadhesh31 avatar May 07 '17 11:05 Awadhesh31

@Awadhesh31 have you upgraded to 4.0.0-rc.0?

markgoho avatar May 07 '17 13:05 markgoho

yes. i have this problem with 4.0.0-rc.0

anupavanm avatar May 07 '17 16:05 anupavanm

1.npm cache clean 2.npm install angularfire2 firebase --save I have uses above step and it works, previously it was showing "angularfire2": "4.0.0-rc.0", "firebase": "^3.9.0", and after using above step and rpm build it working properly and know it showing "angularfire2": "^2.0.0-beta.7-pre", "firebase": "^3.9.0",

and this is happing because of angularfire2 version

Awadhesh31 avatar May 07 '17 20:05 Awadhesh31

Any solution?

MarinoRaul avatar Jul 04 '17 20:07 MarinoRaul

Any Solution x2 ??? Respond!!!

RicardoVM64 avatar Jul 22 '17 21:07 RicardoVM64

image

Can someone help me plz? I could find any solution yet

fahadhussain2 avatar Aug 02 '17 08:08 fahadhussain2

Add me to the list of people getting this error. I'm simply following the install steps shown here. Using Angularfire2 4.0.0-rc.2 firebase 4.3.0

szaske avatar Aug 18 '17 04:08 szaske

I found a solution to this problem. I upgraded to the newest node (8.4) and latest angular/cli...and that resolved the problem. Previously I was using the older angular-cli.

szaske avatar Aug 18 '17 06:08 szaske

ERROR in C:/Users/vadnu/foodService/node_modules/@agm/core/services/maps-api-loader/lazy-maps-api-loader.d.ts (1,10): Module '"C:/Users/vadnu/foodService/node_modules/@angular/core/index"' has no exported member 'InjectionToken'.

i Get this too

is there a fix?

vad1986 avatar Nov 21 '17 14:11 vad1986

ERROR in C:/Users/vadnu/foodService/node_modules//services/maps-api-loader/lazy-maps-api-loader.d.ts (1,10): Module '"C:/Users/vadnu/foodService/node_modules/@angular/core/index"' has no exported member 'InjectionToken'.

i Get this too

is there a fix? same for me !!

tkssharma avatar Nov 28 '17 06:11 tkssharma

Same error, my environment:

node: v8.9.1 "angular-cli": "1.0.0-beta.28.3", "angularfire2": "^5.0.0-rc.4", "firebase": "^4.6.2",

This seems to have helped: https://github.com/angular/angularfire2/issues/1089#issuecomment-319980130

benjamin21st avatar Nov 28 '17 13:11 benjamin21st

the same issue for me to `WARNING in ./~/@agm/core/services/maps-api-loader/lazy-maps-api-loader.js 24:38-52 "export 'InjectionToken' was not found in '@angular/core'

ERROR in /Desktop/angular-cli/node_modules/@agm/core/services/maps-api-loader/lazy-maps-api-loader.d.ts (1,10): Module '"/Desktop/angular-cli/node_modules/@an gular/core/index"' has no exported member 'InjectionToken'. webpack: Failed to compile. `

brahimNWAw avatar May 03 '18 17:05 brahimNWAw