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
The firebase-auth element fails to initialize when running under es5 or es6 with js minified.
Expected outcome
The page should load with no errors written to the console. Calling the signInWithPopup method on the firebase-auth element should initiate the Google sign-in with popup as expected.
Actual outcome
An error is written to the console and calling signInWithPopup method on the firebase-auth element fails.
firebase-auth.js:1 Uncaught TypeError: Cannot read property 'length' of undefined at Ee.e.dispatchEvent (firebase-auth.js:1) at Me (firebase-auth.js:1) at Ee.Pe (firebase-auth.js:1) at Ee.send (firebase-auth.js:1) at Ed.sg (firebase-auth.js:1) at Cd (firebase-auth.js:1) at firebase-auth.js:1 at new ta (firebase-auth.js:1) at Ld (firebase-auth.js:1) at firebase-auth.js:1
A work around is to load the firebase sdk itself in your index.html and remove the scripts from the polymerfire or create a gulp that builds the polymer but doesn't compile the firebase scripts in babel
Description
The
firebase-auth
element fails to initialize when running under es5 or es6 with js minified.Expected outcome
The page should load with no errors written to the console. Calling the
signInWithPopup
method on thefirebase-auth
element should initiate the Google sign-in with popup as expected.Actual outcome
An error is written to the console and calling
signInWithPopup
method on thefirebase-auth
element fails.firebase-auth.js:1 Uncaught TypeError: Cannot read property 'length' of undefined
at Ee.e.dispatchEvent (firebase-auth.js:1)
at Me (firebase-auth.js:1)
at Ee.Pe (firebase-auth.js:1)
at Ee.send (firebase-auth.js:1)
at Ed.sg (firebase-auth.js:1)
at Cd (firebase-auth.js:1)
at firebase-auth.js:1
at new ta (firebase-auth.js:1)
at Ld (firebase-auth.js:1)
at firebase-auth.js:1
Live Demo
https://test-b2837.firebaseapp.com
Steps to reproduce
firebase-app
element and afirebase-auth
element in the page.firebase.json
andpolymer.json
(see https://github.com/vivetech/polymer-firebase-test).polymer build
.firebase serve
.Browsers Affected
The text was updated successfully, but these errors were encountered: