angularfire

Angular9: ERROR in The target entry-point “@angular/fire/auth” has missing dependencies

烈酒焚心 提交于 2020-06-10 09:06:31
问题 When I run npm run start I get the below error regarding firebase. Tech : Angular version 9, Firebase, Firestore, Geofirestore Angular CLI. Error : ERROR in The target entry-point "@angular/fire/auth" has missing dependencies: - firebase/auth - firebase/app Dependencies to note: "@angular/cli": "~9.1.1", "@angular/core": "~9.1.1", "@angular/fire": "^5.1.1", "firebase": "5.10.1", "geofirestore": "3.2.3", Package json : { "name": "project", "version": "1.0.0", "scripts": { "ng": "ng", "start":

How to use valueChanges() instead of get() to download data with JSON string?

∥☆過路亽.° 提交于 2020-04-30 06:31:25
问题 I have a form with two different buttons, one to download data (from Firestore) and one to display it in realtime. For this I have two functions (Angular 8), where one uses valueChanges() to display data in realtime and the other uses get() to get the same data and download it. The user can choose to specify search more or less, so I have quite a lot of code for making the query and this needs to be doubled if I am to use both get() and valueChanges() . I am therefore wondering if someone can

User conflict when using same Auth method for Admin and Normal users | Firebase Auth

萝らか妹 提交于 2020-04-16 02:30:29
问题 I'm working on Admin module of an android application. Admin module is a web-app based on Angular. Firebase auth(Email/password) is used to sign-In as a admin. I've added a manual credential entry to firebase and admin is using these credentials to login (Since there is no registration functionality for admin) on other side Android developer has also used the same Auth method to sign in a user. So users of android application are able to login with their credentials to Admin module. How do I

User conflict when using same Auth method for Admin and Normal users | Firebase Auth

那年仲夏 提交于 2020-04-16 02:28:12
问题 I'm working on Admin module of an android application. Admin module is a web-app based on Angular. Firebase auth(Email/password) is used to sign-In as a admin. I've added a manual credential entry to firebase and admin is using these credentials to login (Since there is no registration functionality for admin) on other side Android developer has also used the same Auth method to sign in a user. So users of android application are able to login with their credentials to Admin module. How do I

Error: Reference.child failed: First argument was an invalid path

青春壹個敷衍的年華 提交于 2020-04-07 07:34:25
问题 I have this small app with Firebase and i'm implementing CRUD operations. The issue comes when I have to delete a post. I get this error: Error: Reference.child failed: First argument was an invalid path Here is the service code: createReview(review) { return this.db.list('/reviews').push(review) } getReviews(){ return this.db.list('/reviews'); } deleteReview(id:any){ console.log(id) this.db.object('/reviews/' + id).remove(); } Component TS delete(review) { console.log(review) this

error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class

最后都变了- 提交于 2020-03-21 16:49:34
问题 First time using firestore and I'm getting this error. It seems to be a problem with Ivy, from my research. I don't have a lot of experience modifying tsconfig.app.json, which is the direction I've been pointed to, following other answers. The only thing I was able to modify from the original project was to use Angular Fire 6 instead of 5, which I had done initially to follow a tutorial. Here's package.json: { "name": "language", "version": "0.0.0", "scripts": { "ng": "ng", "start": "ng serve

error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class

让人想犯罪 __ 提交于 2020-03-21 16:48:54
问题 First time using firestore and I'm getting this error. It seems to be a problem with Ivy, from my research. I don't have a lot of experience modifying tsconfig.app.json, which is the direction I've been pointed to, following other answers. The only thing I was able to modify from the original project was to use Angular Fire 6 instead of 5, which I had done initially to follow a tutorial. Here's package.json: { "name": "language", "version": "0.0.0", "scripts": { "ng": "ng", "start": "ng serve

AngularFire2 Authentication Error: First argument “email” must be a valid string

最后都变了- 提交于 2020-02-23 04:36:28
问题 I am trying to make login and signup forms for my web app using angularFire2 and Firebase. I am getting an error when taking a users signup information and passing it into the signInWithEmailAndPassword function. signInWithEmailAndPassword failed: First argument "email" must be a valid string. I have everything in my component that deals with the email variable typed as a string and it logs to the console as a string so I am not sure exactly what is going on. I have researched for almost 3

How to check for time sync in Ionic 4 app to prevent time cheat/fake by user?

那年仲夏 提交于 2020-02-08 10:16:12
问题 I am developing an App in Ionic 4 using Angular and I am using Firebase to store and retrieve data using AngularFire. My App displays list of events from database that span over two days from current time and has an option for registering for events. Events that had start time in past and start time in future(3+ days from now) are not shown in the App. Currently, I am using client's system time but the problem with this is user can change device time to past to see all the events in the past

How/can do you chain promises for firebase transactions inside a for loop

心已入冬 提交于 2020-02-02 04:06:31
问题 I am looking to increment several counters with Firebase transactions and also add set a new value in firebase. The key being I want to make sure it is all successful or not save any of the data. I imagine this would be best done with promises? Unfortunately I'm not very familiar with them So far I have: $scope.addNewPost = function() { var ref = new Firebase(FBURL).child('/posts').push(); var onComplete = function(error) { if (error) { alert('Error: Something went wrong when creating your