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
Firebase SDK version: @firebase/testing 0.7.9 through 0.9.4
Firebase Product: @firebase/testing and firebase-admin
Description
This is a refinement and isolation of issue #1630 specifically related to firebase-admin breaking @firebase/testing. Even if no code is called in firebase-admin the issue still presents.
@firebase/testing doesn't return a firestore() instance when firebase-admin is a dependency in package.json.
Environment
Description
This is a refinement and isolation of issue #1630 specifically related to firebase-admin breaking @firebase/testing. Even if no code is called in firebase-admin the issue still presents.
@firebase/testing
doesn't return afirestore()
instance whenfirebase-admin
is a dependency inpackage.json
.Steps to reproduce
git clone https://github.com/firebase/quickstart-nodejs.git
cd quickstart-nodejs/firestore-emulator/javascript-quickstart/
"firebase-admin": "7.3.0"
to"dependencies"
in package.json. This is the step which reproduces the issuenpm install
firebase serve --only firestore
Now in the node the run the following code:
const firebase = require("@firebase/testing");
firebase.firestore()
This will produce an error:
Thrown:
TypeError: firebase.firestore is not a function
The text was updated successfully, but these errors were encountered: