由于NanoMatch问题导致Firestore无法正常运行的Firebase功能 [英] Firebase Functions for Firestore Failing due to NanoMatch Issue

查看:94
本文介绍了由于NanoMatch问题导致Firestore无法正常运行的Firebase功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不熟悉云功能,并且正在测试此示例代码 https://github.com/firebase/functions-samples/tree/master/quickstarts/uppercase-firestore
由于nanomatch出现错误,此操作无法执行。在 GitHub 上查看nanomatch存储库。这是一个已列出的问题,将恢复为1.2.9。处理此错误。

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 to an error from nanomatch. Looking at nanomatch repository on GitHub This is a listed issue and reverting back to 1.2.9 takes care of this error.

我正试图解决这个问题-但是我该怎么做?有人可以指导我吗?感谢您的帮助。

I am trying to fix this on my end - but how do I do this? Can somebody guide me on this. Thank you for the help.

TypeError: Cannot read property 'addQmark' of undefined
    at Object.<anonymous> (/user_code/node_modules/firebase-admin/node_modules/nanomatch/lib/compilers.js:92:15)
    at Object.visit (/user_code/node_modules/firebase-admin/node_modules/snapdragon/lib/compiler.js:129:15)
    at Object.mapVisit (/user_code/node_modules/firebase-admin/node_modules/snapdragon/lib/compiler.js:143:12)
    at Object.compile (/user_code/node_modules/firebase-admin/node_modules/snapdragon/lib/compiler.js:168:10)
    at Snapdragon.compile (/user_code/node_modules/firebase-admin/node_modules/snapdragon/index.js:156:32)
    at /user_code/node_modules/firebase-admin/node_modules/micromatch/index.js:786:23
    at memoize (/user_code/node_modules/firebase-admin/node_modules/micromatch/index.js:859:13)
    at Function.micromatch.compile (/user_code/node_modules/firebase-admin/node_modules/micromatch/index.js:783:10)
    at create (/user_code/node_modules/firebase-admin/node_modules/micromatch/index.js:686:25)
    at /user_code/node_modules/firebase-admin/node_modules/micromatch/index.js:695:16


推荐答案

此错误已修复



当此问题已在GitHub上报道,该发布仅需几分钟。要获取此修复程序,只需重新安装即可。您可能需要先删除node_modules和/或锁文件,以确保NPM不使用缓存的版本。该对话属于GitHub,因此我们可以响应用户的反馈。我是偶然发现的。 StackOverflow不支持)。

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).

编辑2:看来firebase-admin本身也需要重新安装依赖项。我正在研究如何做到这一点。

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

请在GitHub上报告并检查问题,代码库在哪里,讨论在哪里。

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

访问 https:// github。 com / micromatch / nanomatch / issues / 15 了解更多信息。

这篇关于由于NanoMatch问题导致Firestore无法正常运行的Firebase功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆