Can not see the Firebase function deployed

后端 未结 15 793
失恋的感觉
失恋的感觉 2021-02-02 08:23

I followed the following steps:

  1. The Firebase CLI (Command Line Interface) requires Node.js and npm, which you can install by following the instructions on https

15条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-02 09:15

    I went through the same issue recently, while performing Actions on Google Node.js Client Library Version 1 Migration Guide. to Node.js Client Library V2 (That I highly recommend) It took me a while to figure out what what was happening. At the I couldn't really figure out what the problem was! So here is what I did and it worked for me:

    1. Make sure you have a backup copy of your cloud functions (index.js) and maybe your package.json (Just in case you don't want to remember what packages you previously had installed - Could be annoying sometimes).

    2. Delete the entire functions directory from your project folder.

    3. Re-launch firebase CLI with firebase init and choose Functions

    4. Once your cloud function have been initialized, CD into the functions folder and Redeploy it using firebase deploy --only functions.

    5. If everything goes well

提交回复
热议问题