本文介绍了FIRESTORE(4.10.1)内部声明失败:AsyncQueue已经失败:请求的版本(1)小于现有版本(2)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对不起,我很抱歉,但是除了收到此错误外,我真的不知道该说些什么!我不知道为什么,除了我认为它与版本的兼容性有关.一切都在一台机器上工作.我将其克隆到另一个并出现此错误.

I'm sorry for being vague, but I really don't know what to mention except that I am receiving this error! I have no idea why except that I think it has something to do with version in compatibility. Everything worked on one machine. I cloned it to another and have this error now.

我正在使用angularfire2运行Angular 5.

I'm running Angular 5 with angularfire2.

请让我知道哪些日志等会有所帮助.

Please let me know which logs, etc. would be helpful.

谢谢,韦恩

我也在使用ngx-pwa-localStorage,因此可能与以下内容有关: Chrome控制台错误:已请求版本(1)小于现有版本(2)

I am also using ngx-pwa-localStorage so it may have something to with:Chrome console error: The requested version (1) is less than the existing version (2)

下面是我的package.json

below is my package.json

{
  "name": "scriptertainment",
  "version": "0.4.0",
  "license": "MIT",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
  },
  "private": true,
  "dependencies": {
    "@angular-devkit/core": "^0.4.6",
    "@angular-devkit/schematics": "0.0.52",
    "@angular/animations": "^5.0.0",
    "@angular/common": "^5.0.0",
    "@angular/compiler": "^5.0.0",
    "@angular/core": "^5.2.10",
    "@angular/forms": "^5.0.0",
    "@angular/http": "^5.0.0",
    "@angular/platform-browser": "^5.0.0",
    "@angular/platform-browser-dynamic": "^5.0.0",
    "@angular/router": "^5.0.0",
    "@angular/service-worker": "^5.2.10",
    "@ng-bootstrap/ng-bootstrap": "^1.1.0",
    "@ngx-pwa/local-storage": "^5.2.0",
    "angularfire2": "5.0.0-rc.6",
    "bootstrap": "4.0.0-beta.2",
    "core-js": "^2.4.1",
    "firebase": "^4.12.0",
    "ionicons": "^3.0.0",
    "ngx-filter-pipe": "2.1.0",
    "ngx-swiper-wrapper": "^5.3.8",
    "open-iconic": "^1.1.1",
    "pdfjs-dist": "^2.0.489",
    "rxjs": "^5.5.2",
    "swiper": "^4.2.0",
    "zone.js": "^0.8.14"
  },
  "devDependencies": {
    "@angular/cli": "^1.7.2",
    "@angular/compiler-cli": "^5.0.0",
    "@angular/language-service": "^5.0.0",
    "@types/jasmine": "~2.5.53",
    "@types/jasminewd2": "~2.0.2",
    "@types/node": "~6.0.60",
    "codelyzer": "~3.2.0",
    "jasmine-core": "~2.6.2",
    "jasmine-spec-reporter": "~4.1.0",
    "karma": "~1.7.0",
    "karma-chrome-launcher": "~2.1.1",
    "karma-cli": "~1.0.1",
    "karma-coverage-istanbul-reporter": "^1.2.1",
    "karma-jasmine": "~1.1.0",
    "karma-jasmine-html-reporter": "^0.2.2",
    "protractor": "~5.1.2",
    "ts-node": "~3.2.0",
    "tslint": "~5.7.0",
    "typescript": "~2.4.2"
  }
}

推荐答案

感谢 https://stackoverflow.com/users/819775/igor 获取帮助.

答案是手动删除Firestore IndexDB条目.在Chrome中,进入开发控制台,转到应用程序标签.在左侧找到IndexDB并展开.对于列表中的每个Firebase数据库,选择该数据库并使用删除数据库"按钮.

The answer is to manually delete the firestore IndexDB entries. In Chrome, enter the Dev Console, go to application tab. Locate IndexDB on the left and expand. For each firebase db in the list, select the db and use the "Delete Database" button.

这对我来说还可以,因为我的应用尚未投入生产,但是我不得不想象对于现场站点,当页面加载并刷新页面或放入页面时,您需要实现db delete调用.放置一个临时站点重定向来处理数据库清理.

This was ok for me since my app is not yet in production, but I would have to imagine that for live sites, you'll need to implement a db delete call when the page loads and refresh the page or put in a place a temporary site redirect that handles the db cleanup.

由于更新似乎束缚了FB DB,所以我不确定您将如何回收该数据.希望您的应用很重要,可以将数据保留在其他地方.

Since the update seems to hose the FB DB, I'm not sure how you would reclaim that data. Hopefully, your app persists the data elsewhere, if it's important.

这篇关于FIRESTORE(4.10.1)内部声明失败:AsyncQueue已经失败:请求的版本(1)小于现有版本(2)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-22 20:51