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."}}
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With