No Typing files firebase3.d.ts
There is no firebase3.d.ts file created after we do: npm install firebase angularfire2@next --save or npm install firebase angularfire2 --save
typings install file:node_modules/angularfire2/firebase3.d.ts --save --global && typings install
the difference depends on the module loader you use: option 1)if you have a src/system-config.ts file usign the angular-cli without webpack: -> then there is a mapping 'firebase': 'vendor/firebase/firebase.js so you will not get the error unknown namespace firebase 2) if you use the new angular-cli with webpack and no src/system-config.ts file then you have to add to your app.module.ts file -> import * as firebase from 'firebase';
typings install file:node_modules/angularfire2/firebase3.d.ts --save --global && typings install
I got this error @davideast
System information:
Cordova CLI: 6.3.1
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.10
Ionic CLI Version: 2.0.0
Ionic App Lib Version: 2.0.0
ios-deploy version: 1.8.6
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v6.5.0
Xcode version: Xcode 8.0 Build version 8S201h
TypeScript error: /Users/endriazizi/Ionic-2-Blueprints/socialapp/node_modules/angula
rfire2/interfaces.d.ts(12,35): Error TS2503: Cannot find namespace 'firebase'.
TypeScript error: app/app.ts(49,5): Error TS2345: Argument of type '{ provider: Auth
Providers; method: AuthMethods; remember: string; scope: string[]; }' is not assigna
ble to parameter of type 'AuthConfiguration'.
Object literal may only specify known properties, and 'remember' does not exist in
type 'AuthConfiguration'.
TypeScript error: typings/index.d.ts(2,1): Error TS6053: File 'node_modules/angularf
ire2/firebase3.d.ts' not found.
[17:25:00] Finished 'watch' after 3.99 s
[17:25:00] Starting 'serve:before'...
[17:25:00] Finished 'serve:before' after 4.03 μs
Running live reload server: http://localhost:35729
Watching: www/**/*, !www/lib/**/*
√ Running dev server: http://localhost:8100
Ionic server commands, enter:
restart or r to restart the client app from the root
goto or g and a url to have the app navigate to the given url
consolelogs or c to enable/disable console log output
serverlogs or s to enable/disable server log output
quit or q to shutdown the server and exit
ionic $ 11.4 MB bytes written (8.07 seconds)
/////////////////////////////
package.json
////////////////////////////
{
"dependencies": {
"@angular/common": "2.0.0-rc.4",
"@angular/compiler": "2.0.0-rc.4",
"@angular/core": "2.0.0-rc.4",
"@angular/forms": "*",
"@angular/http": "2.0.0-rc.4",
"@angular/platform-browser": "2.0.0-rc.4",
"@angular/platform-browser-dynamic": "2.0.0-rc.4",
"angular2-moment": "^0.8.2",
"angularfire2": "^2.0.0-beta.2",
"es6-shim": "^0.35.0",
"firebase": "^3.1.0",
"ionic-angular": "2.0.0-beta.10",
"ionic-native": "1.2.4",
"ionicons": "3.0.0",
"moment": "^2.14.1",
"reflect-metadata": "^0.1.3",
"rxjs": "5.0.0-beta.6",
"zone.js": "^0.6.12"
},
"devDependencies": {
"del": "2.2.0",
"gulp": "3.9.1",
"gulp-watch": "4.3.5",
"ionic-gulp-browserify-typescript": "2.0.0",
"ionic-gulp-fonts-copy": "^1.0.0",
"ionic-gulp-html-copy": "^1.0.0",
"ionic-gulp-sass-build": "^1.0.0",
"ionic-gulp-scripts-copy": "^2.0.0",
"run-sequence": "1.1.5"
},
"name": "social-app",
"description": "social-app: An Ionic project",
"cordovaPlugins": [
"cordova-plugin-device",
"cordova-plugin-console",
"cordova-plugin-whitelist",
"cordova-plugin-splashscreen",
"cordova-plugin-statusbar",
"ionic-plugin-keyboard"
],
"cordovaPlatforms": []
}
it still getting hard to work with
Typescript Error
Cannot find name 'AngularFireAuth'.
...rkspace/barber/barber_frontend_ionic/node_modules/angularfire2/angularfire2.d.ts
private firebaseConfig;
auth: AngularFireAuth;
database: AngularFireDatabase;
Typescript Error
Cannot find name 'AngularFireDatabase'.
...rkspace/barber/barber_frontend_ionic/node_modules/angularfire2/angularfire2.d.ts
auth: AngularFireAuth;
database: AngularFireDatabase;
constructor(firebaseConfig: string, auth: AngularFireAuth, database: AngularFireDatabase);
Typescript Error
Cannot find name 'AngularFireAuth'.
...rkspace/barber/barber_frontend_ionic/node_modules/angularfire2/angularfire2.d.ts
database: AngularFireDatabase;
constructor(firebaseConfig: string, auth: AngularFireAuth, database: AngularFireDatabase);
}