angular / angularfire

Angular + Firebase = ❤️
https://firebaseopensource.com/projects/angular/angularfire2
MIT License
7.68k stars 2.19k forks source link

This package is not working. #481

Closed IvRRimum closed 8 years ago

IvRRimum commented 8 years ago

Followed all installation instructions.

THis is what i get when starting up:

[19:26:07] Starting 'build.js.dev'... /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(42,38): error TS1110: Type expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(42,42): error TS1005: ';' expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(43,30): error TS1005: ',' expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(43,61): error TS1005: ';' expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(44,30): error TS1005: '(' expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(46,13): error TS1005: ';' expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(46,36): error TS1005: '(' expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(47,28): error TS1005: ';' expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(47,51): error TS1005: '(' expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(48,22): error TS1005: ',' expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(48,31): error TS1005: ';' expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(48,54): error TS1005: '(' expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(49,25): error TS1005: ',' expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(49,34): error TS1005: ';' expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(49,57): error TS1005: '(' expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(50,31): error TS1005: ',' expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(50,40): error TS1005: ';' expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(50,63): error TS1005: '(' expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(51,26): error TS1005: ',' expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(51,80): error TS1005: ';' expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(52,30): error TS1005: '(' expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(56,25): error TS1110: Type expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(57,19): error TS1110: Type expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(58,22): error TS1110: Type expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(65,31): error TS1110: Type expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(65,35): error TS1005: ',' expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(74,1): error TS1128: Declaration or statement expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(96,61): error TS1110: Type expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(99,32): error TS1110: Type expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(163,40): error TS1110: Type expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(163,67): error TS1110: Type expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(181,48): error TS1110: Type expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(182,9): error TS1005: ';' expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(184,1): error TS1128: Declaration or statement expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(192,34): error TS1110: Type expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(195,17): error TS1110: Type expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(210,35): error TS1110: Type expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(211,35): error TS1110: Type expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(212,44): error TS1110: Type expected. /home/karlis/Projects/my-instagram/admin/typings/globals/firebase/index.d.ts(214,45): error TS1110: Type expected.

Before there was an error undefined namespace 'firebase' in angularfire2...

after adding firebase.d.ts to typings.d.ts i get the error above.

Whats the problem?

davideast commented 8 years ago

What is your TypeScript version? What is your AF2 version? What is your Angular version?

IvRRimum commented 8 years ago

I am using the angular2-seed repo

IvRRimum commented 8 years ago

I don't know how to check the version of typescirpt

IvRRimum commented 8 years ago

I reainstalled everything. Now i get this:[20:24:38] Starting 'build.js.dev'... /home/karlis/Projects/my-instagram/admin/node_modules/angularfire2/angularfire2.d.ts(13,66): error TS2503: Cannot find namespace 'firebase'. /home/karlis/Projects/my-instagram/admin/node_modules/angularfire2/angularfire2.d.ts(15,46): error TS2503: Cannot find namespace 'firebase'. /home/karlis/Projects/my-instagram/admin/node_modules/angularfire2/auth/auth.d.ts(11,20): error TS1112: A class member cannot be declared optional. /home/karlis/Projects/my-instagram/admin/node_modules/angularfire2/auth/auth.d.ts(14,40): error TS2503: Cannot find namespace 'firebase'. /home/karlis/Projects/my-instagram/admin/node_modules/angularfire2/auth/auth.d.ts(15,52): error TS2503: Cannot find namespace 'firebase'. /home/karlis/Projects/my-instagram/admin/node_modules/angularfire2/auth/auth.d.ts(15,92): error TS2503: Cannot find namespace 'firebase'. /home/karlis/Projects/my-instagram/admin/node_modules/angularfire2/auth/auth.d.ts(16,51): error TS2503: Cannot find namespace 'firebase'. /home/karlis/Projects/my-instagram/admin/node_modules/angularfire2/auth/auth.d.ts(16,119): error TS2503: Cannot find namespace 'firebase'. /home/karlis/Projects/my-instagram/admin/node_modules/angularfire2/auth/auth.d.ts(19,56): error TS2503: Cannot find namespace 'firebase'. /home/karlis/Projects/my-instagram/admin/node_modules/angularfire2/auth/auth_backend.d.ts(6,82): error TS2503: Cannot find namespace 'firebase'. /home/karlis/Projects/my-instagram/admin/node_modules/angularfire2/auth/auth_backend.d.ts(8,49): error TS2503: Cannot find namespace 'firebase'. /home/karlis/Projects/my-instagram/admin/node_modules/angularfire2/auth/auth_backend.d.ts(13,46): error TS2503: Cannot find namespace 'firebase'. /home/karlis/Projects/my-instagram/admin/node_modules/angularfire2/auth/auth_backend.d.ts(39,11): error TS2503: Cannot find namespace 'firebase'. /home/karlis/Projects/my-instagram/admin/node_modules/angularfire2/auth/auth_backend.d.ts(41,14): error TS2503: Cannot find namespace 'firebase'. /home/karlis/Projects/my-instagram/admin/node_modules/angularfire2/auth/auth_backend.d.ts(42,14): error TS2503: Cannot find namespace 'firebase'. /home/karlis/Projects/my-instagram/admin/node_modules/angularfire2/auth/auth_backend.d.ts(43,15): error TS2503: Cannot find namespace 'firebase'. /home/karlis/Projects/my-instagram/admin/node_modules/angularfire2/auth/auth_backend.d.ts(44,16): error TS2503: Cannot find namespace 'firebase'. /home/karlis/Projects/my-instagram/admin/node_modules/angularfire2/auth/auth_backend.d.ts(47,55): error TS2503: Cannot find namespace 'firebase'. /home/karlis/Projects/my-instagram/admin/node_modules/angularfire2/auth/auth_backend.d.ts(47,85): error TS2503: Cannot find namespace 'firebase'. /home/karlis/Projects/my-instagram/admin/node_modules/angularfire2/auth/firebase_sdk_auth_backend.d.ts(8,14): error TS2503: Cannot find namespace 'firebase'. /home/karlis/Projects/my-instagram/admin/node_modules/angularfire2/auth/firebase_sdk_auth_backend.d.ts(9,25): error TS2503: Cannot find namespace 'firebase'. /home/karlis/Projects/my-instagram/admin/node_modules/angularfire2/auth/firebase_sdk_auth_backend.d.ts(17,73): error TS2503: Cannot find namespace 'firebase'. /home/karlis/Projects/my-instagram/admin/node_modules/angularfire2/auth/firebase_sdk_auth_backend.d.ts(19,36): error TS2503: Cannot find namespace 'firebase'. /home/karlis/Projects/my-instagram/admin/node_modules/angularfire2/auth/firebase_sdk_auth_backend.d.ts(20,37): error TS2503: Cannot find namespace 'firebase'. /home/karlis/Projects/my-instagram/admin/node_modules/angularfire2/database/database.d.ts(8,29): error TS2503: Cannot find namespace 'firebase'. /home/karlis/Projects/my-instagram/admin/node_modules/angularfire2/database/database.d.ts(9,31): error TS2503: Cannot find namespace 'firebase'. /home/karlis/Projects/my-instagram/admin/node_modules/angularfire2/database/firebase_list_factory.d.ts(5,74): error TS2503: Cannot find namespace 'firebase'. /home/karlis/Projects/my-instagram/admin/node_modules/angularfire2/database/firebase_list_factory.d.ts(5,104): error TS2503: Cannot find namespace 'firebase'. /home/karlis/Projects/my-instagram/admin/node_modules/angularfire2/database/firebase_list_observable.d.ts(6,50): error TS2503: Cannot find namespace 'firebase'. /home/karlis/Projects/my-instagram/admin/node_modules/angularfire2/database/firebase_list_observable.d.ts(6,80): error TS2503: Cannot find namespace 'firebase'. /home/karlis/Projects/my-instagram/admin/node_modules/angularfire2/database/firebase_list_observable.d.ts(8,11): error TS2503: Cannot find namespace 'firebase'. /home/karlis/Projects/my-instagram/admin/node_modules/angularfire2/database/firebase_list_observable.d.ts(8,41): error TS2503: Cannot find namespace 'firebase'. /home/karlis/Projects/my-instagram/admin/node_modules/angularfire2/database/firebase_list_observable.d.ts(9,23): error TS2

davideast commented 8 years ago

You'll need to upgrade your version of TypeScript to 2.0+. The angular2-seed project is on TypeScript 1.8 and AF2 only supports 2.0+.

kanishkatn commented 8 years ago

I am getting the same error and I noticed that the latest version of typescript is 1.8.10 :/

https://www.npmjs.com/package/typescript

How can I get the 2.0?

dmastag commented 8 years ago

@kanishkatn you can run from the console npm install -g typescript@2

AhsanAyaz commented 8 years ago

I'm facing the same issue. When i put reference to firebase.d.ts, it gives the same errors:

TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(43,38): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(43,42): Error TS1005: ';' expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(44,30): Error TS1005: ',' expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(44,61): Error TS1005: ';' expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(45,30): Error TS1005: '(' expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(47,13): Error TS1005: ';' expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(47,36): Error TS1005: '(' expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(48,28): Error TS1005: ';' expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(48,51): Error TS1005: '(' expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(49,22): Error TS1005: ',' expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(49,31): Error TS1005: ';' expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(49,54): Error TS1005: '(' expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(50,25): Error TS1005: ',' expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(50,34): Error TS1005: ';' expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(50,57): Error TS1005: '(' expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(51,31): Error TS1005: ',' expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(51,40): Error TS1005: ';' expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(51,63): Error TS1005: '(' expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(52,26): Error TS1005: ',' expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(52,80): Error TS1005: ';' expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(53,30): Error TS1005: '(' expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(57,25): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(58,19): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(59,22): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(66,31): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(66,35): Error TS1005: ',' expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(75,1): Error TS1128: Declaration or statement expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(97,61): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(100,32): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(164,40): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(164,67): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(182,48): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(183,9): Error TS1005: ';' expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(185,1): Error TS1128: Declaration or statement expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(193,34): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(196,17): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(211,35): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(212,35): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(213,44): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(215,45): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(216,32): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(217,51): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(222,40): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(224,42): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(229,67): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(230,26): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(232,53): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(233,41): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(234,8): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(234,12): Error TS1005: ';' expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(234,13): Error TS1128: Declaration or statement expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(234,50): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(236,18): Error TS1005: ',' expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(237,25): Error TS1109: Expression expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(239,34): Error TS1109: Expression expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(240,17): Error TS1109: Expression expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(240,31): Error TS1005: ';' expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(240,54): Error TS1005: '(' expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(241,22): Error TS1005: ',' expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(241,31): Error TS1005: ';' expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(242,17): Error TS1005: ';' expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(243,22): Error TS1005: ';' expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(244,19): Error TS1005: ';' expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(246,18): Error TS1005: ',' expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(246,52): Error TS1109: Expression expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(246,61): Error TS1005: ';' expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(248,15): Error TS1005: ';' expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(253,17): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(255,41): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(256,46): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(258,35): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(260,44): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(262,33): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(263,31): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(265,49): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(266,32): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(270,23): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(271,48): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(273,51): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(281,1): Error TS1128: Declaration or statement expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(306,40): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(321,27): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(322,33): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(323,30): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(324,30): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(325,26): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(326,76): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(362,22): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(368,60): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(369,36): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(369,65): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(374,73): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(375,42): Error TS1110: Type expected. TypeScript error: node_modules/angularfire2/node_modules/firebase/firebase.d.ts(380,25): Error TS1110: Type expected.