【发布时间】:2021-07-07 10:19:26
【问题描述】:
我正在尝试上传我的云功能,但在上传过程中出现错误:
14:63 error Parsing error: Unexpected token =>
功能:
exports.deleteUser = functions.https.onCall(async (data, ctx) => {
//my code
}
错误是箭头...
但是这个错误发生在我在云上部署我的功能但使用模拟器时什么都没有出现。
【问题讨论】:
-
也许云只支持 ES5 不支持 ES6 ?
-
你在使用 eslint 吗?如果是的话,你能分享一下配置吗?
标签: javascript node.js firebase async-await google-cloud-functions