Firebase 函数:无法设置只有 getter 的 #<Object> 的属性配置

arj*_*uns 13 firebase firebase-tools

Firebase 功能运行良好我更新到最新的 firebase-tools 现在在运行 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."}}
Run Code Online (Sandbox Code Playgroud)

Uch*_*nge 23

我在尝试时遇到了同样的错误firebase serve。对我来说,修复只是将我的 firebase-tools 更新到最新版本npm install -g firebase-tools。最新的更新似乎解决了这个特殊问题。

编辑:该修复程序已在 firebase-tools 的 8.4.1 版中发布


arj*_*uns 2

事实证明,这个问题是在我在这里发布的同时提交和修复的:GitHub - firebase-tools - Cannot set property config of # which has only a getter #2301

修复应该很快就会在 8.4.1 中提供。