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

Upgrading firebase and firebase-admin in the same project causes problems again #5709

Closed
richtera opened this issue Nov 7, 2021 · 6 comments

Comments

@richtera
Copy link

richtera commented Nov 7, 2021

[REQUIRED] Describe your environment

nv.dev environment with
"firebase": "^9.0.1",
"firebase-admin": "^9.11.1",
Upgrading to latest breaks the project.

  • Operating System version: MacOS 12.0.1 (21A559)
  • Browser version: Version 95.0.4638.69 (Official Build) (x86_64)
  • Firebase SDK version: 9.0.1
  • Firebase Product: auth,database,storage,functions,firestore

[REQUIRED] Describe the problem

Upgrading to latest npm packages on firebase and firebase-admin mismatch again.
This is identical to what happened in this defect #752

@richtera
Copy link
Author

richtera commented Nov 8, 2021

The upgrade was versions involved are from and to
firebase 9.1.3 9.3.0 9.3.0 dependencies https://firebase.google.com/
firebase-admin 9.12.0 9.12.0 10.0.0 dependencies https://firebase.google.com/
i.e. 9.1.3 to 9.3.0
and 9.12.0 to 10.0.0
So 9.3.0 and 10.0.0 don't seem to be able to live together in the same project agin.

@sam-gc sam-gc added api: core and removed api: auth labels Nov 8, 2021
@jbalidiong
Copy link
Contributor

Hi @richtera, thanks for reaching out. I tried to replicate it but I wasn't able to experience the same behavior. If I can replicate the issue, I can have a better look into it. Please share a minimal, but complete sample of a project that I can run locally.

@richtera
Copy link
Author

richtera commented Nov 9, 2021

I can retry it again toward the end of the week, my upgrade took a nose dive after upgrading the firebase and firebase-admin modules due to a dependency that is somehow shared between them but now mismatching. It used to be the @firebase modules, but after seeing the problem I didn't have the bandwidth to find out exactly which ones.

@google-oss-bot
Copy link
Contributor

Hey @richtera. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@richtera
Copy link
Author

Ok, so the main problem is that now firebase/firestore at al are no longer loadable in nodejs making all jest test scripts fail.
image
I am trying to see if there is a special workaround for loading the web libraries in node to use under jsdom.

@Feiyang1
Copy link
Member

duplicate of #5687

@hsubox76 hsubox76 closed this as completed Jul 7, 2022
@firebase firebase locked and limited conversation to collaborators Aug 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants