-
Notifications
You must be signed in to change notification settings - Fork 7
admin.firestore is not a function #6
Copy link
Copy link
Open
Description
Got this error when requiring firetore-seed. Could it be that firebase-admin is outdated?
"firebase": "^7.15.4",
"firebase-admin": "^8.11.0",
"firebase-functions": "^3.7.0",
"firebase-tools": "^8.4.2",
"firestore-seed": "0.0.11",
/Users/renaud/Code/yasx/functions/node_modules/firestore-seed/dist/index.js:177
var firestore = admin.firestore();
^
TypeError: admin.firestore is not a function
at CollectionSeed.importDocuments (/Users/renaud/Code/yasx/functions/node_modules/firestore-seed/dist/index.js:177:31)
at Object.<anonymous> (/Users/renaud/Code/yasx/functions/firestore-seed.js:27:20)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels