angular / angularfire

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

Uncaught (in promise) TypeError: Object(...) is not a function on RXJS6 #2228

Closed JochenDB closed 3 years ago

JochenDB commented 4 years ago

I'm running into a similar issue as #1866, #1700 and others. The difference is, I'm already on rxjs6. I also have rxjs-compat6.

Is there anything else I can try?

Version info

Angular:5.0.3 Firebase:7.2.1 AngularFire:5.2.1 Ionic:3.9.5 Cordova:9.0.0 rxjs:6.3.3 rxjs-compat:6.3.3 typescript:3.6.4

Debug output

Errors in the JavaScript console

Unhandled Promise rejection: Object(...) is not a function ; Zone: <root> ; Task: Promise.then ; Value: TypeError: Object(...) is not a function at handler (VM32 vendor.js:203787) at VM32 vendor.js:203934 at t.invoke (VM31 polyfills.js:3) at r.run (VM31 polyfills.js:3) at VM31 polyfills.js:3 at t.invokeTask (VM31 polyfills.js:3) at r.runTask (VM31 polyfills.js:3) at o (VM31 polyfills.js:3) at e.invokeTask [as invoke] (VM31 polyfills.js:3) at p (VM31 polyfills.js:2) at XMLHttpRequest.v (VM31 polyfills.js:2) TypeError: Object(...) is not a function at handler (http://localhost:8100/build/vendor.js:203787:118) at http://localhost:8100/build/vendor.js:203934:17 at t.invoke (http://localhost:8100/build/polyfills.js:3:14976) at r.run (http://localhost:8100/build/polyfills.js:3:10143) at http://localhost:8100/build/polyfills.js:3:20242 at t.invokeTask (http://localhost:8100/build/polyfills.js:3:15660) at r.runTask (http://localhost:8100/build/polyfills.js:3:10834) at o (http://localhost:8100/build/polyfills.js:3:7894) at e.invokeTask [as invoke] (http://localhost:8100/build/polyfills.js:3:16823) at p (http://localhost:8100/build/polyfills.js:2:27648) at XMLHttpRequest.v (http://localhost:8100/build/polyfills.js:2:27893)

mfouadegy commented 4 years ago

same problem with me :(

JochenDB commented 4 years ago

Fixed by downgrading firebase again to 6.6.2 @mfouadegy

mfouadegy commented 4 years ago

downgraded and same problem :( @JochenDB

gayathri-17 commented 4 years ago

Try, downgrading @angular/fire to 5.2.0

mfouadegy commented 4 years ago

i'm using angularfire2 in ionic 3 app @gayu1712

miyabiya commented 4 years ago

same problem

miyabiya commented 4 years ago

in my case, updated @angular/fire to 5.3.0-rc.0 is solved

joaoeudes7 commented 4 years ago

Thanks @miyabiya! This angularfire is very confuse!

Erro resolved: "AngularFireDatabase" Object(...) is not a function

jamesdaniels commented 3 years ago

Closing as outdated.