将 expo RN 项目中的图像上传到 google 云函数
upload image from expo RN project to google cloud functions
https://medium.com/@wcandillon/uploading-images-to-firebase-with-expo-a913c9f8e98d
我一直在关注这个很棒的 post 关于如何使用 expo 将图像上传到具有 google 存储的 google 云功能,但我不断收到此错误:
TypeError: handler is not a function
at cloudFunction (/user_code/node_modules/firebase-functions/lib/providers/https.js:26:41)
at /var/tmp/worker/worker.js:671:7
at /var/tmp/worker/worker.js:655:9
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickDomainCallback (internal/process/next_tick.js:128:9)
感谢任何帮助。我没有开发快速应用程序的经验,但如果我不能很快找到答案,我可能需要。
感谢您的回复。我发现了问题。我没有在代码上使用 module.exports 将其导出到索引文件,我的所有 google 云函数都在该索引文件中注册,即下面的代码
exports.api = functions.https.onRequest(api);
感谢您的回复。
https://medium.com/@wcandillon/uploading-images-to-firebase-with-expo-a913c9f8e98d
我一直在关注这个很棒的 post 关于如何使用 expo 将图像上传到具有 google 存储的 google 云功能,但我不断收到此错误:
TypeError: handler is not a function
at cloudFunction (/user_code/node_modules/firebase-functions/lib/providers/https.js:26:41)
at /var/tmp/worker/worker.js:671:7
at /var/tmp/worker/worker.js:655:9
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickDomainCallback (internal/process/next_tick.js:128:9)
感谢任何帮助。我没有开发快速应用程序的经验,但如果我不能很快找到答案,我可能需要。
感谢您的回复。我发现了问题。我没有在代码上使用 module.exports 将其导出到索引文件,我的所有 google 云函数都在该索引文件中注册,即下面的代码
exports.api = functions.https.onRequest(api);
感谢您的回复。