This is the Angular complete course by Mosh.
Hi everyone, i got a problem in the "20.Project Authentication and Authorization" part in the "Storing Users in Firebase" part, when i save the user i got an error like this:
core.js:6014 ERROR TypeError: Class constructor Observable cannot be invoked without 'new'
at new FirebaseObjectObservable (firebase_object_observable.js:16)
at FirebaseObjectFactory (firebase_object_factory.js:7)
at AngularFireDatabase.push../node_modules/angularfire2/database/database.js.AngularFireDatabase.object (database.js:18)
at UserService.save (user.service.ts:12)
at SafeSubscriber.next (app.component.ts:17)
at SafeSubscriber.__tryOrUnsub (Subscriber.js:185)
at SafeSubscriber.next (Subscriber.js:124)
at Subscriber.next (Subscriber.js:72)
at Subscriber.next (Subscriber.js:49)
at Notification.observe (Notification.js:20)
This is produced by this line of code:
this.db.object('/users/' + user.uid) ...
I found some answer on the web, that explains to change the "target": "es2015", in the tsconfig file to "es5" but i doesnt work for me, it brings more errors.