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
just rollback to older version npm install -g firebase-tools@3.19.0
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
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!)
Use this:
npm install nanomatch@1.2.9 -S
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.