You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the documentation, the nextOrObserver parameter for the firebase.storage.UploadTask#on method should accept an observer with only some of the methods: next, complete, and error.
This, though, raises the following error: TypeError: Cannot read property 'bind' of undefined since observer.complete is undefined. Relevant code here.
Currently, the only workaround besides providing an actual method is this:
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
According to the documentation, the
nextOrObserver
parameter for thefirebase.storage.UploadTask#on
method should accept an observer with only some of the methods:next
,complete
, anderror
.That means this should be allowed:
This, though, raises the following error:
TypeError: Cannot read property 'bind' of undefined
sinceobserver.complete
isundefined
. Relevant code here.Currently, the only workaround besides providing an actual method is this:
Steps to reproduce:
See JS Bin link below.
Relevant Code:
http://jsbin.com/yujaraboma/1/edit?js,console
The text was updated successfully, but these errors were encountered: