GoogleCloudPlatform/iot-smart-home-cloud

exception when event is triggered.

larryxia-ddl opened this issue · 0 comments

After update the engine to 12, I can deploy the functions. but got this exception when event is triggered. Please advice how to fix it.

TypeError: Cannot read property 'name' of undefined
at beforeSnapshotConstructor (/workspace/node_modules/firebase-functions/lib/providers/firestore.js:136:75)
at changeConstructor (/workspace/node_modules/firebase-functions/lib/providers/firestore.js:142:49)
at cloudFunctionNewSignature (/workspace/node_modules/firebase-functions/lib/cloud-functions.js:119:34)
at cloudFunction (/workspace/node_modules/firebase-functions/lib/cloud-functions.js:151:20)
at Promise.resolve.then (/layers/google.nodejs.functions-framework/functions-framework/node_modules/@google-cloud/functions-framework/build/src/function_wrappers.js:140:25)
at process._tickCallback (internal/process/next_tick.js:68:7)