I am using the stripe-firestore-invoices cloud function in my project. I needed to customize it to satisfy my use case, so instead of installing the extension, I had downloaded the source code and tried deploying. However, the function to send the invoice (it's a firestore handler function) doesn't get deployed and throws the following error:
! functions: failed to create function devInvoice-sendInvoice
HTTP Error: 400, Invalid JSON payload received. Unknown name "children" at 'function': Cannot find field.
Invalid JSON payload received. Unknown name "exit" at 'function': Cannot find field.
Invalid JSON payload received. Unknown name "message" at 'function': Cannot find field.
I am running the latest version of firebase-tools: v8.9.0
I tried updating the dependencies to their latest versions:
firebase-functions: v3.11.0
firebase-admin: v9.1.1
stripe: v8.89.0
Still the same error persists.