我最近两天都收到了这个错误 . 这是在我安装名为“faker”的节点模块后发生的 . 我到目前为止发现的是,npm 5删除了没有使用npm 5安装的package.lock.json中的任何软件包 . 因此我删除了节点模块和package.lock.json,并进行了npm安装,它没有没有帮助 . 我创建了一个单独的expo项目并将文件从旧项目复制到它并再次安装每个模块,它仍然无法正常工作 .

以下是我得到的错误:

[15:18:35] [Unhandled promise rejection: TypeError: undefined is not a function (evaluating 'collection[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]()')]
- node_modules/@firebase/firestore/dist/index.cjs.js:8293:17 in forEach
- node_modules/@firebase/firestore/dist/index.cjs.js:13322:42 in onTransactionCommitted
- ... 52 more stack frames from framework internals