2.0.0-beta.6 Duplicate identifiers / ERRORS
Think I found a bug
After adding Angular Fire to my project, which I have created with angular-cli, I get the following errors when I start the app with ng serve:
ERROR in [default] /Users/daslicht/DEV/exp/angular2-firebase/node_modules/firebase/firebase.d.ts:150:8
Duplicate identifier 'FacebookAuthProvider_Instance'.
ERROR in [default] /Users/daslicht/DEV/exp/angular2-firebase/node_modules/firebase/firebase.d.ts:155:8
Duplicate identifier 'GithubAuthProvider'.
ERROR in [default] /Users/daslicht/DEV/exp/angular2-firebase/node_modules/firebase/firebase.d.ts:159:8
Duplicate identifier 'GithubAuthProvider_Instance'.
ERROR in [default] /Users/daslicht/DEV/exp/angular2-firebase/node_modules/firebase/firebase.d.ts:164:8
Duplicate identifier 'GoogleAuthProvider'.
ERROR in [default] /Users/daslicht/DEV/exp/angular2-firebase/node_modules/firebase/firebase.d.ts:169:8
Duplicate identifier 'GoogleAuthProvider_Instance'.
ERROR in [default] /Users/daslicht/DEV/exp/angular2-firebase/node_modules/firebase/firebase.d.ts:174:8
Duplicate identifier 'TwitterAuthProvider'.
ERROR in [default] /Users/daslicht/DEV/exp/angular2-firebase/node_modules/firebase/firebase.d.ts:179:8
Duplicate identifier 'TwitterAuthProvider_Instance'.
ERROR in [default] /Users/daslicht/DEV/exp/angular2-firebase/node_modules/firebase/firebase.d.ts:183:7
Duplicate identifier 'UserCredential'.
ERROR in [default] /Users/daslicht/DEV/exp/angular2-firebase/node_modules/firebase/firebase.d.ts:354:7
Duplicate identifier 'StringFormat'.
ERROR in [default] /Users/daslicht/DEV/exp/angular2-firebase/node_modules/firebase/firebase.d.ts:355:6
Duplicate identifier 'StringFormat'.
ERROR in [default] /Users/daslicht/DEV/exp/angular2-firebase/node_modules/firebase/firebase.d.ts:362:7
Duplicate identifier 'TaskEvent'.
ERROR in [default] /Users/daslicht/DEV/exp/angular2-firebase/node_modules/firebase/firebase.d.ts:363:6
Duplicate identifier 'TaskEvent'.
ERROR in [default] /Users/daslicht/DEV/exp/angular2-firebase/node_modules/firebase/firebase.d.ts:367:7
Duplicate identifier 'TaskState'.
ERROR in [default] /Users/daslicht/DEV/exp/angular2-firebase/node_modules/firebase/firebase.d.ts:368:6
Duplicate identifier 'TaskState'.
ERROR in [default] /Users/daslicht/DEV/exp/angular2-firebase/node_modules/firebase/firebase.d.ts:405:2
Duplicate identifier 'export='.
Version info
"@angular/common": "~2.1.0",
"@angular/compiler": "~2.1.0",
"@angular/core": "~2.1.0",
"@angular/forms": "~2.1.0",
"@angular/http": "~2.1.0",
"@angular/platform-browser": "~2.1.0",
"@angular/platform-browser-dynamic": "~2.1.0",
"@angular/router": "~3.1.0",
"angularfire2": "^2.0.0-beta.6",
"core-js": "^2.4.1",
"firebase": "^3.5.2",
"rxjs": "5.0.0-beta.12",
"ts-helpers": "^1.1.1",
"zone.js": "^0.6.23"
see: https://github.com/daslicht/angular2-firebase/blob/slideshow/package.json#L14
Getting the same errors when trying to upgrade to beta.6-preview.
Windows 10
"@angular/common": "2.1.1",
"@angular/compiler": "2.1.1",
"@angular/compiler-cli": "2.1.1",
"@angular/core": "2.1.1",
"@angular/forms": "2.1.1",
"@angular/platform-browser": "2.1.1",
"@angular/platform-browser-dynamic": "2.1.1",
"@angular/router": "3.1.1",
"@angular/tsc-wrapped": "0.3.0",
"angularfire2": "^2.0.0-beta.6-preview",
"core-js": "2.4.1",
"firebase": "^3.5.2",
"rxjs": "5.0.0-beta.12",
"zone.js": "0.6.26"
Same here. I thought I was going crazy!
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\angularfire2\node_modules\firebase\firebase.d.ts:12:8
Duplicate identifier 'Promise'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\angularfire2\node_modules\firebase\firebase.d.ts:17:8
Duplicate identifier 'Promise_Instance'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\angularfire2\node_modules\firebase\firebase.d.ts:130:8
Duplicate identifier 'EmailAuthProvider'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\angularfire2\node_modules\firebase\firebase.d.ts:135:8
Duplicate identifier 'EmailAuthProvider_Instance'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\angularfire2\node_modules\firebase\firebase.d.ts:144:8
Duplicate identifier 'FacebookAuthProvider'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\angularfire2\node_modules\firebase\firebase.d.ts:148:8
Duplicate identifier 'FacebookAuthProvider_Instance'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\angularfire2\node_modules\firebase\firebase.d.ts:153:8
Duplicate identifier 'GithubAuthProvider'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\angularfire2\node_modules\firebase\firebase.d.ts:157:8
Duplicate identifier 'GithubAuthProvider_Instance'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\angularfire2\node_modules\firebase\firebase.d.ts:162:8
Duplicate identifier 'GoogleAuthProvider'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\angularfire2\node_modules\firebase\firebase.d.ts:167:8
Duplicate identifier 'GoogleAuthProvider_Instance'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\angularfire2\node_modules\firebase\firebase.d.ts:172:8
Duplicate identifier 'TwitterAuthProvider'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\angularfire2\node_modules\firebase\firebase.d.ts:177:8
Duplicate identifier 'TwitterAuthProvider_Instance'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\angularfire2\node_modules\firebase\firebase.d.ts:181:7
Duplicate identifier 'UserCredential'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\angularfire2\node_modules\firebase\firebase.d.ts:339:7
Duplicate identifier 'StringFormat'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\angularfire2\node_modules\firebase\firebase.d.ts:340:6
Duplicate identifier 'StringFormat'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\angularfire2\node_modules\firebase\firebase.d.ts:347:7
Duplicate identifier 'TaskEvent'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\angularfire2\node_modules\firebase\firebase.d.ts:348:6
Duplicate identifier 'TaskEvent'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\angularfire2\node_modules\firebase\firebase.d.ts:352:7
Duplicate identifier 'TaskState'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\angularfire2\node_modules\firebase\firebase.d.ts:353:6
Duplicate identifier 'TaskState'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\angularfire2\node_modules\firebase\firebase.d.ts:390:2
Duplicate identifier 'export='.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\firebase\firebase.d.ts:12:8
Duplicate identifier 'Promise'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\firebase\firebase.d.ts:17:8
Duplicate identifier 'Promise_Instance'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\firebase\firebase.d.ts:132:8
Duplicate identifier 'EmailAuthProvider'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\firebase\firebase.d.ts:137:8
Duplicate identifier 'EmailAuthProvider_Instance'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\firebase\firebase.d.ts:146:8
Duplicate identifier 'FacebookAuthProvider'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\firebase\firebase.d.ts:150:8
Duplicate identifier 'FacebookAuthProvider_Instance'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\firebase\firebase.d.ts:155:8
Duplicate identifier 'GithubAuthProvider'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\firebase\firebase.d.ts:159:8
Duplicate identifier 'GithubAuthProvider_Instance'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\firebase\firebase.d.ts:164:8
Duplicate identifier 'GoogleAuthProvider'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\firebase\firebase.d.ts:169:8
Duplicate identifier 'GoogleAuthProvider_Instance'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\firebase\firebase.d.ts:174:8
Duplicate identifier 'TwitterAuthProvider'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\firebase\firebase.d.ts:179:8
Duplicate identifier 'TwitterAuthProvider_Instance'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\firebase\firebase.d.ts:183:7
Duplicate identifier 'UserCredential'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\firebase\firebase.d.ts:354:7
Duplicate identifier 'StringFormat'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\firebase\firebase.d.ts:355:6
Duplicate identifier 'StringFormat'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\firebase\firebase.d.ts:362:7
Duplicate identifier 'TaskEvent'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\firebase\firebase.d.ts:363:6
Duplicate identifier 'TaskEvent'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\firebase\firebase.d.ts:367:7
Duplicate identifier 'TaskState'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\firebase\firebase.d.ts:368:6
Duplicate identifier 'TaskState'.errors @ client?d09b:80sock.onmessage @ socket.js:37EventTarget.dispatchEvent @ eventtarget.js:51(anonymous function) @ main.js:274SockJS._transportMessage @ main.js:272EventEmitter.emit @ emitter.js:50WebSocketTransport.ws.onmessage @ websocket.js:35wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335
client?d09b:80 [default] F:\Beta Source Code\request-it\node_modules\firebase\firebase.d.ts:405:2
Duplicate identifier 'export='.
Hi @daslicht, can you please update your issue to follow the template? There are many fields missing that would be helpful.
Can you also provide your tsconfig.json?
Hi @daslicht, as mentioned in the change log, you have to remove the firebase typings from the tsconfig. I've received the same errors, but removing firebase from the tsconfig.json solved the problem.
Note from the change log:
A TypeScript issue with the previous release has been fixed, where errors about a missing firebase namespace were reported. For applications that worked around this issue by manually adding the firebase.d.ts typings to tsconfig.json, those typings should now be removed since the firebase namespace should automatically be resolved within AngularFire. See this issue for more context.
@dabele91 This is my guess as well. @daslicht Let me know if that works.
Seems to work fine when starting new. I'm currently trying to duplicate the error on a blank template using qdouble's minimal starter but no luck.
Here is my repo that has the error.
This is my tsconfig.json with the repo I am getting errors with. I deleted my /dll and /node_modules folder and the problem persists.
Windows 10 - Note: I do not have firebase in my tsconfig.
{
"compilerOptions": {
"target": "es5",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": ["es5", "dom"],
"noEmitHelpers": true,
"skipDefaultLibCheck": true,
"pretty": true,
"sourceMap": true,
"strictNullChecks": false,
"typeRoots": [
"node_modules/@types"
]
},
"exclude": [
"node_modules",
"src/compiled"
],
"awesomeTypescriptLoaderOptions": {
"useWebpackText": true,
"forkChecker": true,
"useCache": true
},
"compileOnSave": false,
"buildOnSave": false,
"atom": { "rewriteTsconfig": false }
}
I had the same problem as @daslicht after upgrading an existing project from beta.5 to beta.6.
To fix this remove "types": [ "firebase" ] from your tsconfig.json file. Then delete your node_modules folder and npm install again.
Problem solved.
same issues here
ERROR in [default] c:\ttuhscEpSpCalendar\node_modules\angularFire2\node_modules\firebase\firebase.d.ts:12:8
Duplicate identifier 'Promise'.
ERROR in [default] c:\ttuhscEpSpCalendar\node_modules\angularFire2\node_modules\firebase\firebase.d.ts:17:8
Duplicate identifier 'Promise_Instance'.
windows 10 x64 angular-cli: "1.0.0-beta.15",
"firebase": "^3.5.3", "angularfire2": "^2.0.0-beta.6",
tsconfig.json
{
"compilerOptions": {
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [
"es6",
"dom"
],
"mapRoot": "./",
"module": "es6",
"moduleResolution": "node",
"outDir": "../dist/out-tsc",
"sourceMap": true,
"target": "es5",
"typeRoots": [
"../node_modules/@types"
],
"types": []
}
}
@edoardoVD Have you installed Firebase types from npm install @types/firebase? Because that would provide duplicate typings as the npm package ships with the typings.
If not try deleting your node_modules and re-installing.
For me I was installing the Firebase SDK and AngularFire2 via NPM. Now it seems that I can't use the latest Firebase SDK v3.5.3, but only the one that is included with AngularFire2 (v3.3.0). Each install was conflicting with each other. @davideast will there be a way to use the new Firebase SDK in the future? Thanks!
Removing Firebase from my package.json dependencies like @jwuliger suggested worked for me. I am no longer getting the errors.
@davideast : On a side note, this new release reduced my production build (with AOT) from 338kb to 233kb. Thanks for all the work you and the rest of the team are doing with AngularFire2.
@davideast nope, I have not installed firebase types @AdamJo, I have also removed "firebase": "^3.5.3" from the package.json, ran npm prune, ng build all is good.
Even though I was getting the console screaming bloody murder error messages, the app was compiling and working ( when I still had , "firebase": "^3.5.3" on the package.json)
And by the looks of the inner content of angularfire2 beta 6 npm package (node_modules\angularfire2\node_modules\firebase\package.json) its using "[email protected]", I guess in the near future we will see using the latest version
Cheerio edo@rdo
I had the same problem. Based to @davideast suggestion, I did npm uninstall @types/firebase. This solved the problem.
I just did a fresh build using the latest versions and had no issues, even after running npm install --save firebase angularfire2 and then ng build.
katowulf-macbookpro:ngapp katowulf$ npm list --depth=0
[email protected] /Users/katowulf/projects/ngapp
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
katowulf-macbookpro:ngapp katowulf$ npm -v
3.10.3
katowulf-macbookpro:ngapp katowulf$ node -v
v6.5.0
katowulf-macbookpro:ngapp katowulf$ cat package.json
{
"name": "ngapp",
"version": "0.0.0",
"license": "MIT",
"angular-cli": {},
"scripts": {
"start": "ng serve",
"lint": "tslint \"src/**/*.ts\"",
"test": "ng test",
"pree2e": "webdriver-manager update",
"e2e": "protractor"
},
"private": true,
"dependencies": {
"@angular/common": "~2.1.0",
"@angular/compiler": "~2.1.0",
"@angular/core": "~2.1.0",
"@angular/forms": "~2.1.0",
"@angular/http": "~2.1.0",
"@angular/platform-browser": "~2.1.0",
"@angular/platform-browser-dynamic": "~2.1.0",
"@angular/router": "~3.1.0",
"angularfire2": "^2.0.0-beta.6",
"core-js": "^2.4.1",
"firebase": "^3.5.3",
"rxjs": "5.0.0-beta.12",
"ts-helpers": "^1.1.1",
"zone.js": "^0.6.23"
},
"devDependencies": {
"@types/jasmine": "^2.2.30",
"@types/node": "^6.0.42",
"angular-cli": "1.0.0-beta.18",
"codelyzer": "1.0.0-beta.1",
"jasmine-core": "2.4.1",
"jasmine-spec-reporter": "2.5.0",
"karma": "1.2.0",
"karma-chrome-launcher": "^2.0.0",
"karma-cli": "^1.0.1",
"karma-jasmine": "^1.0.2",
"karma-remap-istanbul": "^0.2.1",
"protractor": "4.0.9",
"ts-node": "1.2.1",
"tslint": "3.13.0",
"typescript": "~2.0.3"
}
}
Possible solutions that worked for others:
@jwuliger noted that AngularFire2 requires Firebase SDK ^3.3.0 and installing via npm gives ^3.5.3 (not compatible apparently)
@choopage used npm uninstall @types/firebase
@edoardoVD removed firebase from package.json, then npm prune
Closing this issue as it doesn't follow the issue template (so we'll have trouble reproducing it), there are suggested workarounds, and it appears fixed. If others run into this issue, and can't use one of the suggested fixes, please submit a new issue and follow the issue template.
@katowulf The issue only shows if you import firebase somewhere.
I use some of the regular firebase functionality in my application, and need to import * as firebase from 'firebase'; (in order to have access to the firebase object).
It's because angularfire2 installs it's own version of firebase (or because of me installing my own version of firebase, same issue). If firebase was a peerDependency, none of this would happen.
Related: https://github.com/angular/angularfire2/issues/623
Solutions:
- Remove firebase from your package.json, it's not needed (since it's possible to import firebase as usual even without it).
- If you really want to run
[email protected](or any version later than3.3.0) it's possible to remove angularfire2's firebase by runningrm -rf node_modules/angularfire2/node_modules/firebasewhich also solves the problem.
@davideast I already posted my whole code in the initial post inclusive the tsconfig.
After removing the following form the tsconfig:
"types": [
"firebase"
]
I've got:
ERROR in [default] /Users/daslicht/DEV/exp/angular2-firebase/src/typings.d.ts:5:12
Subsequent variable declarations must have the same type. Variable 'require' must be of type 'NodeRequire', but here has type 'any'.
ERROR in [default] /Users/daslicht/DEV/exp/angular2-firebase/src/typings.d.ts:6:12
Subsequent variable declarations must have the same type. Variable 'module' must be of type 'NodeModule', but here has type 'any'.
Child html-webpack-plugin for "index.html":
see: https://github.com/daslicht/angular2-firebase/blob/slideshow/src/typings.d.ts#L5
Changed to :
declare var System: any;
declare var require: NodeRequire;
declare var module: NodeModule;
So I deleted the nodes_modules folder and removed "firebase": "^3.5.2", as suggested by @Maistho from the package.json
After a reinstall by using :
npm install
I've got no errors anymore, now its time to try it out.
@dabele91 Next time I have a look in the changelog for sure.
@all Thank you very much for the participation and help !
I was facing the same problem.
I followed this steps:
- Remove "firebase": "^3.5.1" from my package.json
- Removed node_modules
- npm install
Now everything is working good! Thanks all!
My solution was to install the same version as needed by angularfire2:
npm install [email protected] angularfire2 --save
yep.. or simply go to node_modules/firebase/ and check app.d.ts and firebase.d.ts exist. if exists then just delete firebase.d.ts. Because both contains the same definitions and that is causing this error. This works always. there is no /@types/firebase as @davideast said. and i am using latest firebase and angular2 since first 1hr of my working time is dedicated to update packages and my tools to latest version.
The only thing that worked for me just now was doing the last thing they mentions : npm install [email protected] angularfire2 --save
Everything else failed me and took hours to figure it out. Thanks you for the fix!