Firebase Functions for Firestore Failing due to NanoMatch Issue

后端 未结 5 1014
粉色の甜心
粉色の甜心 2021-02-07 18:51

I am new to cloud functions and was testing this sample code https://github.com/firebase/functions-samples/tree/master/quickstarts/uppercase-firestore This fails to execute due

相关标签:
5条回答
  • 2021-02-07 19:00

    just rollback to older version npm install -g firebase-tools@3.19.0

    0 讨论(0)
  • 2021-02-07 19:11

    Faced the same problem "Thumbnail URL not saved to firestore. Cannot read property 'addQmark' of undefined" Started today morning when I upgraded to the latest firebase-tools@3.19.1 At first thought was issue with my code, but after rollbacking my code the situation persisted. Rolled back to firebase-tools@3.19.0 and the situation got fixed. There is a bug in the latest firebase-tools

    0 讨论(0)
  • 2021-02-07 19:18

    Firebase team is probably/hopefully redeploying all functions without the broken nanomatch package, but for me following the advice from @abhi and redeploying immediately solved the issue!

    npm install nanomatch@1.2.9 -S
    firebase deploy --only functions
    

    (npm install in the functions folder!)

    0 讨论(0)
  • 2021-02-07 19:18

    Use this:

    npm install nanomatch@1.2.9 -S

    0 讨论(0)
  • 2021-02-07 19:25

    THIS BUG WAS FIXED

    The version that caused the bug was reverted right when this issue was reported on GitHub, which was within minutes of it being released. To get the fix, just reinstall. You might need to delete node_modules and/or lockfiles first, to ensure cached versions aren't used by NPM. This conversation belongs on GitHub, so that we can respond to user feedback. I found this by chance. StackOverflow is not for support).

    Edit 2: it appears that firebase-admin itself needs to re-install dependencies as well. I'm looking into how to make that happen.

    Please report and check issues on GitHub, where the codebase is and where this discussion belongs.

    Visit https://github.com/micromatch/nanomatch/issues/15 for more info.

    0 讨论(0)
提交回复
热议问题