Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
twebber90 opened this issue Jul 24, 2020 · 7 comments
Assignees

Comments

@twebber90
Copy link

[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

@google-oss-bot
Copy link
Contributor

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@hsubox76
Copy link
Contributor

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.

@twebber90
Copy link
Author

No problem. Already did to verify this was the culprit 👍 thanks for the speedy response!

@hsubox76
Copy link
Contributor

Just published 7.17.1 which includes the missing package. The release notes will be a little delayed.

@pfic
Copy link

pfic commented Aug 5, 2020

Thanks for publishing the update!

For anyone else that is still having the error after upgrading to 7.17.1, I also had to delete the node_modules and reinstall dependencies. Worked like a charm after that.

@muhammad-Usman85
Copy link

Thanks for publishing the update!

For anyone else that is still having the error after upgrading to 7.17.1, I also had to delete the node_modules and reinstall dependencies. Worked like a charm after that.

in my case it didn't work error is still their

@hsubox76
Copy link
Contributor

  1. What was the latest version that works for you before it broke? Did 7.16.1 work?
  2. Have you tried removing your yarn.lock or package-lock.json file before reinstalling?
@firebase firebase locked and limited conversation to collaborators Sep 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
6 participants