You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Typecheck of process.env in firebase/database is insufficient. In some cases global variable process can be with no process.env. I have some TypeErrors from browser-based runtime:
f/packages/database/src/api/Database.ts reads process.env.FIREBASE_DATABASE_EMULATOR_HOST with undefined check for process but not for process.env.
I found the problem with Nuxt.js (nuxt3 3.0.0-27306170.bd36e13). It should be reproduced with [email protected] and following code.
Relevant Code:
/*// Actually it can be reproduce without Nuxt but with:process.env = null*/import{initializeApp,getApps}from"firebase/app";import{getDatabase}from"firebase/database";initializeApp({databaseURL: "https://sample.firebase.io",});constdb=getDatabase();
The text was updated successfully, but these errors were encountered:
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
Typecheck of
process.env
infirebase/database
is insufficient. In some cases global variableprocess
can be with noprocess.env
. I have someTypeError
s from browser-based runtime:f/packages/database/src/api/Database.ts
readsprocess.env.FIREBASE_DATABASE_EMULATOR_HOST
with undefined check forprocess
but not forprocess.env
.firebase-js-sdk/packages/database/src/api/Database.ts
Lines 131 to 133 in 931c80d
Steps to reproduce:
👀 See also: codesandbox
I found the problem with Nuxt.js (
nuxt3 3.0.0-27306170.bd36e13
). It should be reproduced with[email protected]
and following code.Relevant Code:
The text was updated successfully, but these errors were encountered: