firebase - Nuxt 2.5.0 + Firebase - 未找到依赖项

标签 firebase nuxt.js

我一直在 Nuxt 中使用 firebase,但是随着 2.5.0 升级,我收到了这些错误。似乎无法弄清楚问题是什么?

 ERROR  Failed to compile with 7 errors                                                                           friendly-errors 13:21:54

These dependencies were not found:                                                                                friendly-errors 13:21:54
                                                                                                                  friendly-errors 13:21:54
* core-js/fn/array/find in ./node_modules/@firebase/polyfill/dist/index.esm.js                                    friendly-errors 13:21:54
* core-js/fn/array/find-index in ./node_modules/@firebase/polyfill/dist/index.esm.js                              friendly-errors 13:21:54
* core-js/fn/object/assign in ./node_modules/@firebase/polyfill/dist/index.esm.js                                 friendly-errors 13:21:54
* core-js/fn/string/repeat in ./node_modules/@firebase/polyfill/dist/index.esm.js                                 friendly-errors 13:21:54
* core-js/fn/string/starts-with in ./node_modules/@firebase/polyfill/dist/index.esm.js                            friendly-errors 13:21:54
* core-js/fn/symbol in ./node_modules/@firebase/polyfill/dist/index.esm.js                                        friendly-errors 13:21:54
* core-js/fn/symbol/iterator in ./node_modules/@firebase/polyfill/dist/index.esm.js                               friendly-errors 13:21:54
                                                                                                                  friendly-errors 13:21:54
To install them, you can run: npm install --save core-js/fn/array/find core-js/fn/array/find-index core-js/fn/object/assign core-js/fn/string/repeat core-js/fn/string/starts-with core-js/fn/symbol core-js/fn/symbol/iterator

最佳答案

我有这个确切的问题。

* core-js/modules/es6.array.find in ./.nuxt/client.js                      friendly-errors 20:39:58
* core-js/modules/es6.array.iterator in ./.nuxt/client.js                  friendly-errors 20:39:58
* core-js/modules/es6.date.to-string in ./.nuxt/utils.js, ./.nuxt/components/nuxt.js
* core-js/modules/es6.function.name in ./.nuxt/client.js                   friendly-errors 20:39:58
* core-js/modules/es6.object.assign in ./.nuxt/client.js                   friendly-errors 20:39:58
* core-js/modules/es6.object.keys in ./.nuxt/client.js                     friendly-errors 20:39:58
* core-js/modules/es6.object.to-string in ./.nuxt/client.js, ./.nuxt/components/nuxt-link.client.js
* core-js/modules/es6.promise in ./.nuxt/client.js                         friendly-errors 20:39:58
* core-js/modules/es6.regexp.constructor in ./.nuxt/utils.js               friendly-errors 20:39:58
* core-js/modules/es6.regexp.match in ./.nuxt/client.js                    friendly-errors 20:39:58
* core-js/modules/es6.regexp.replace in ./.nuxt/utils.js, ./.nuxt/components/nuxt.js
* core-js/modules/es6.regexp.search in ./.nuxt/utils.js                    friendly-errors 20:39:58
* core-js/modules/es6.regexp.split in ./.nuxt/utils.js, ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib??vue-loader-options!./.nuxt/components/nuxt-build-indicator.vue?vue&type=script&lang=js& and 1 other
* core-js/modules/es6.regexp.to-string in ./.nuxt/utils.js, ./.nuxt/components/nuxt.js
* core-js/modules/es6.string.includes in ./.nuxt/client.js, ./.nuxt/components/nuxt-link.client.js
* core-js/modules/es6.string.iterator in ./.nuxt/client.js                 friendly-errors 20:39:58
* core-js/modules/es6.string.repeat in ./.nuxt/utils.js                    friendly-errors 20:39:58
* core-js/modules/es6.string.starts-with in ./.nuxt/utils.js               friendly-errors 20:39:58
* core-js/modules/es6.symbol in ./.nuxt/client.js, ./.nuxt/components/nuxt-link.client.js
* core-js/modules/es7.array.includes in ./.nuxt/client.js, ./.nuxt/components/nuxt-link.client.js
* core-js/modules/es7.object.get-own-property-descriptors in ./.nuxt/index.js
* core-js/modules/es7.promise.finally in ./.nuxt/client.js                 friendly-errors 20:39:58
* core-js/modules/es7.symbol.async-iterator in ./.nuxt/client.js, ./.nuxt/components/nuxt-link.client.js
* core-js/modules/web.dom.iterable in ./.nuxt/client.js, ./.nuxt/components/nuxt-link.client.js

问题是,我正在运行 nuxt 2.11。

关于firebase - Nuxt 2.5.0 + Firebase - 未找到依赖项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55286011/

相关文章:

android - 如何从android上的firebase获取用户uid?

seo - 使用动态 slug 时,服务器端渲染如何在 Nuxt 上工作?

Nuxt.js vuex 存储未持久化

javascript - 在 VueJs 中过滤数据 - Vuetify v-tabs

firebase - 用于准确 AB 测试的激活事件和标志更新频率

android - "Networking Traffic Egress GAE/Firebase Storage"是什么意思

javascript - 聚合物火基。对象中的数组

javascript - nuxt.js - 如何动态设置css背景图片

javascript - Bootstrap 5 Nuxt 动态组件不工作

java - Firestore set() 方法不会将文档插入集合中,除非调用 ApiFuture<WriteResult> 的 get() 方法