Skip to content

TypeError: firestoreInstance.settings is not a function #295

@alexbjorlig

Description

@alexbjorlig

Version info

firebase-functions:
2.0.2
firebase-tools:
4.0.1
firebase-admin:
5.12.1

Test case

I am not sure. Happen's before any of my code executes

Steps to reproduce

Deploy functions, and provoke a firestore trigger.

Were you able to successfully deploy your functions?

yes

Expected behavior

"Normal" executions of firestore triggers

Actual behavior

This error in the console:

TypeError: firestoreInstance.settings is not a function
    at beforeSnapshotConstructor (/srv/node_modules/firebase-functions/lib/providers/firestore.js:136:27)
    at changeConstructor (/srv/node_modules/firebase-functions/lib/providers/firestore.js:144:49)
    at cloudFunctionNewSignature (/srv/node_modules/firebase-functions/lib/cloud-functions.js:108:28)
    at /worker/worker.js:726:24
    at <anonymous>
    at process._tickDomainCallback (internal/process/next_tick.js:228:7)

screen shot 2018-07-31 at 17 01 07

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions