Failed to generate manifest from function source: Error: Service account object must contain a string "private_key" property

Viewed 79

I got this error after running npm run serve,

!! functions: Failed to load function definition from source: FirebaseError: Failed to load function definition from source: Failed to generate manifest from function source: Error: Service account object must contain a string "private_key" property.

Heres the screenshot of the logs

Heres the screenshot of the logs

it seems service account issue heres my initialization

admin.initializeApp({ credential: admin.credential.applicationDefault(), });

1 Answers

i found the solution by commenting all of my codes , then theres new errors says , index.js not found , since im using typescript , and then i realised that im running the firebase deploy functions command using the wrong lib folder generated by typescript,

thats why i got these 2 erros:

  1. Failed to generate manifest from function source: Error: Service account object must contain a string "private_key" property.
  2. RangeError: Maximum call stack size exceeded.
Related