Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase functions : Cannot set property config of #<Object> which has only a getter

Firebase functions was working fine I updated to latest firebase-tools Now running into this error issue when running firebase serve.

[debug] [2020-05-28T20:37:11.387Z] [runtime-status] [93658] Error in handleMessage:  => TypeError: Cannot set property config of #<Object> which has only a getter: TypeError: Cannot set property config of #<Object> which has only a getter
    at {....}/node/v10.15.0/lib/node_modules/firebase-tools/lib/emulator/functionsEmulatorRuntime.js:455:19
    at Generator.next (<anonymous>)
    at fulfilled ({....}/node/v10.15.0/lib/node_modules/firebase-tools/lib/emulator/functionsEmulatorRuntime.js:5:58)
[warn] ⚠  functions: Cannot set property config of #<Object> which has only a getter {"metadata":{"emulator":{"name":"functions"},"message":"Cannot set property config of #<Object> which has only a getter"}}
[warn] ⚠  Your function was killed because it raised an unhandled error. {"metadata":{"emulator":{"name":"functions"},"message":"Your function was killed because it raised an unhandled error."}}
like image 581
arjuns Avatar asked May 28 '20 20:05

arjuns


Video Answer


2 Answers

I just got the same error when trying to firebase serve. The fix for me was simply to update my firebase-tools to the latest version with npm install -g firebase-tools. The newest update appears to have solved this particular problem.

edit: The fix was released in version 8.4.1 of firebase-tools

like image 79
Uche Azinge Avatar answered Oct 10 '22 14:10

Uche Azinge


Turns out this was submitted and fixed about the same time that I posted it here: GitHub - firebase-tools - Cannot set property config of # which has only a getter #2301

Fix should be available in 8.4.1 soon.

like image 2
arjuns Avatar answered Oct 10 '22 13:10

arjuns