本文介绍了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 中,进入 Dev Console,转到应用程序选项卡.找到左侧的 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.

这对我来说没问题,因为我的应用程序尚未投入生产,但我不得不想象,对于实时站点,您需要在页面加载并刷新页面或放入放置一个处理数据库清理的临时站点重定向.

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