I have been using firebase cloud functions for some time now and did a minor bug fix today in my code and got the following error when tried to deploy. I undid that change and tried to deploy again with the last committed stable change, but still the same error. Any solutions? PS: This is a typescript project and I compile it with tsc.
Deployment error.
Function load error: Code in file lib/index.js can't be loaded.
Is there a syntax error in your code?
Detailed stack trace: /user_code/node_modules/request/node_modules/sntp/lib/index.js:19
exports.time = async function (options = {}) {
^^^^^^^^
SyntaxError: Unexpected token function