Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.
This repository was archived by the owner on May 19, 2025. It is now read-only.

Errors running with minified js under es5 or es6 in Chrome 61 #280

@vivetech

Description

@vivetech

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 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

Live Demo

https://test-b2837.firebaseapp.com

Steps to reproduce

  1. Create a test project in Firebase and enable Google authentication.
  2. Put a firebase-app element and a firebase-auth element in the page.
  3. Create/edit firebase.json and polymer.json (see https://github.com/vivetech/polymer-firebase-test).
  4. Run polymer build.
  5. Run firebase serve.
  6. Open the local page (localhost:5000) in Chrome.

Browsers Affected

  • Chrome
  • Firefox
  • Safari 9
  • Safari 8
  • Safari 7
  • Edge
  • IE 11
  • IE 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions