TypeError: Object(…) is not a function when updating to v7.17.0 from v7.16.1

[REQUIRED] Describe your environment

  • Operating System version: Mac OS Mojave 10.14.6 (18G6020)
  • Browser version: Google Chrome 84.0.4147.89
  • Firebase SDK version: 7.17.0
  • Firebase Product: initializing, remote config, analytics

[REQUIRED] Describe the problem

Steps to reproduce:

Happens when the application attempts to initialize with firebase.initializeApp

Renovate auto-merged a version bump from 7.16.1 to 7.17.0 and this error started occurring. Everything was working before the version bump 👍

Relevant Code:

https://stackblitz.com/fork/firebase-issue-sandbox

firebase.initializeApp(require('path-to-config'));

const analytics = firebase.analytics(); // stack trace points to this being the failure

Stack trace of error running locally (same error occurs in production)

Screen Shot 2020-07-23 at 8 26 13 PM

2 thoughts on “TypeError: Object(…) is not a function when updating to v7.17.0 from v7.16.1

  1. Sorry! I think this is caused by us not publishing the @firebase/util package which has changes needed to go along with the analytics change. I will try to get that package published quickly.

    In the meantime, please roll back if you can and sorry for the error.