and import it in index.ts and in the index I also declare different cloud function
it will give me the error message
TypeError: row.toArray is not a function
at Function.Array.unzip (/Users/jamfly/my-project/functions/node_modules/collections/shim-array.js:38:24)
at Array.GenericCollection.zip
(/Users/jamfly/my-projectfunctions/node_modules/collections/generic-collection.js:206:18)
at Array.GenericOrder.equals
(/Users/jamfly/my-project/functions/node_modules/collections/generic-order.js:22:14)
at Array.<anonymous> (/Users/jamfly/my-project/functions/node_modules/collections/shim-array.js:290:46)
at Object.equals (/Users/jamfly/my-project/functions/node_modules/collections/shim-object.js:364:18)
at Array.<anonymous> (/Users/jamfly/my-project/functions/node_modules/collections/shim-array.js:138:30)
at coalesce
(/Users/jamfly/my-project/functions/node_modules/@google-cloud/firestore/build/src/reference.js:1857:19)
at QueryOptions.with
(/Users/jamfly/my-project/functions/node_modules/@google-cloud/firestore/build/src/reference.js:826:189)
at CollectionReference.where
(/Users/jamfly/my-project/functions/node_modules/@google-cloud/firestore/build/src/reference.js:965:48)
at testOrderBy (/Users/jamfly/my-project/functions/lib/test-firebase.js:10:23)
at functions.https.onRequest (/Users/jamfly/my-project/functions/lib/test-firebase.js:18:11)
at Run
(/Users/jamfly/.nvm/versions/node/v10.16.0/lib/node_modules/firebase-tools/lib/emulator/functionsEmulatorRuntime.js:608:20)
at
/Users/jamfly/.nvm/versions/node/v10.16.0/lib/node_modules/firebase-tools/lib/emulator/functionsEmulatorRuntime.js:582:19
at Generator.next (<anonymous>)
at
/Users/jamfly/.nvm/versions/node/v10.16.0/lib/node_modules/firebase-tools/lib/emulator/functionsEmulatorRuntime.js:7:71
at new Promise (<anonymous>)
at __awaiter
(/Users/jamfly/.nvm/versions/node/v10.16.0/lib/node_modules/firebase-tools/lib/emulator/functionsEmulatorRuntime.js:3:12)
at Run
(/Users/jamfly/.nvm/versions/node/v10.16.0/lib/node_modules/firebase-tools/lib/emulator/functionsEmulatorRuntime.js:575:12)
at
/Users/jamfly/.nvm/versions/node/v10.16.0/lib/node_modules/firebase-tools/lib/emulator/functionsEmulatorRuntime.js:607:15
at Generator.next (<anonymous>)
at
/Users/jamfly/.nvm/versions/node/v10.16.0/lib/node_modules/firebase-tools/lib/emulator/functionsEmulatorRuntime.js:7:71
at new Promise (<anonymous>)
I guess it possibly is the conflict of package, so, here is my dependencies
Environment details
@google-cloud/firestore
version: 2.2.3Steps to reproduce
and import it in
index.ts
and in the index I also declare different cloud functionit will give me the error message
I guess it possibly is the conflict of package, so, here is my dependencies
Thanks!
ref: https://github.com/googleapis/nodejs-firestore/issues/761