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

Uncaught TypeError: can't access property "__FIREBASE_DEFAULTS__", process.env is undefined #6662

Closed
bcspragu opened this issue Oct 7, 2022 · 8 comments · Fixed by #6665
Closed

Comments

@bcspragu
Copy link

bcspragu commented Oct 7, 2022

Describe your environment

  • Operating System version: Arch Linux, Kernel 5.19.13
  • Browser version: Firefox Developer Edition 106.0b8
  • Firebase SDK version: 9.11.0
  • Firebase Product: the issue is in util

Describe the problem

Steps to reproduce:

  1. Use the Firebase JS client SDK in an environment where process is defined, but process.env isn't, like Nuxt 3 in the browser.
  2. Observe the following error in the console:
Uncaught TypeError: can't access property "__FIREBASE_DEFAULTS__", process.env is undefined
@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.

@adinvadim
Copy link

Which release has this closed issue? Or is it not released yet?

@bcspragu
Copy link
Author

bcspragu commented Oct 10, 2022

Poking around the repo, it looks like it hasn't been released yet. Seems like some semi-automated process will ship out 1.7.1 of @firebase/util, and this directory will get emptied out. The changelog will likely also get updated.

@hsubox76
Copy link
Contributor

We will release this week, we are aiming for tomorrow to try to get this out quicker (releases are normally on Thursday) but it's not guaranteed.

@iscekic
Copy link

iscekic commented Oct 11, 2022

I just hit this issue after upgrading to [email protected] - downgraded to 9.10.0 for the time being.

@hsubox76
Copy link
Contributor

The fix has been released in 9.12.0.

@kai-oswald
Copy link

Just wanted to let you know this fixed the issue I had in a nuxt3 app. Thank you👍🏼

@Santoshah
Copy link

This still breaks SSR. 9.12.0

#6677 (comment)

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

Successfully merging a pull request may close this issue.

8 participants