在“ rxjs”错误中找不到如何修复导出“ NotificationKind”

时间:2019-06-08 17:05:39

标签: node.js angular rxjs ngrx

NotificationKind已弃用here,但在构建有角度的8应用程序时会引发以下错误:

ng build

Date: 2019-06-08T16:44:40.118Z
Hash: 7f30f6f31d45ce95291b
Time: 12019ms
chunk {main} main-es5.js, main-es5.js.map (main) 72.2 kB [initial] [rendered]
chunk {polyfills} polyfills-es5.js, polyfills-es5.js.map (polyfills) 662 kB [initial] [rendered]
chunk {runtime} runtime-es5.js, runtime-es5.js.map (runtime) 6.08 kB [entry] [rendered]
chunk {styles} styles-es5.js, styles-es5.js.map (styles) 1.45 MB [initial] [rendered]
chunk {vendor} vendor-es5.js, vendor-es5.js.map (vendor) 3.93 MB [initial] [rendered]

ERROR in /var/app/node_modules/@ngrx/effects/fesm5/effects.js 401:33-49
"export 'NotificationKind' was not found in 'rxjs'
ERROR in /var/app/node_modules/@ngrx/effects/fesm5/effects.js 403:56-72
"export 'NotificationKind' was not found in 'rxjs'
ERROR in /var/app/node_modules/@ngrx/effects/fesm5/effects.js 404:33-49
"export 'NotificationKind' was not found in 'rxjs'
ERROR in /var/app/node_modules/@ngrx/effects/fesm5/effects.js 407:55-71
"export 'NotificationKind' was not found in 'rxjs'
{
  "name": "@spotacard/app",
  "version": "0.0.0",
  "license": "MIT",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "test": "ng test",
    "lint": "nx lint && ng lint",
    "e2e": "ng e2e",
    "affected:apps": "nx affected:apps",
    "affected:libs": "nx affected:libs",
    "affected:build": "nx affected:build",
    "affected:e2e": "nx affected:e2e",
    "affected:test": "nx affected:test",
    "affected:lint": "nx affected:lint",
    "affected:dep-graph": "nx affected:dep-graph",
    "affected": "nx affected",
    "format": "nx format:write",
    "format:write": "nx format:write",
    "format:check": "nx format:check",
    "update": "ng update @nrwl/workspace",
    "update:check": "ng update",
    "workspace-schematic": "nx workspace-schematic",
    "dep-graph": "nx dep-graph",
    "help": "nx help"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "^8.0.0",
    "@angular/common": "^8.0.0",
    "@angular/compiler": "^8.0.0",
    "@angular/core": "^8.0.0",
    "@angular/forms": "^8.0.0",
    "@angular/platform-browser": "^8.0.0",
    "@angular/platform-browser-dynamic": "^8.0.0",
    "@angular/router": "^8.0.0",
    "@ngrx/effects": "^8.0.0",
    "@ngrx/router-store": "^8.0.0",
    "@ngrx/store": "^8.0.0",
    "@ngrx/store-devtools": "^8.0.0",
    "@nrwl/angular": "^8.0.1",
    "@nrwl/nx": "^7.8.6",
    "bootstrap": "^4.3.1",
    "bootswatch": "^4.3.1",
    "core-js": "^2.5.4",
    "ngrx-store-freeze": "^0.2.4",
    "rxjs": "~6.3.3",
    "rxjs-compat": "^6.5.2",
    "zone.js": "^0.9.1"
  },
  "devDependencies": {
    "jest-preset-angular": "7.0.0",
    "@angular/compiler-cli": "^8.0.0",
    "@angular/language-service": "^8.0.0",
    "@angular-devkit/build-angular": "^0.800.0",
    "codelyzer": "~5.0.1",
    "cypress": "3.1.0",
    "@types/jquery": "3.3.6",
    "@nrwl/cypress": "8.0.1",
    "@nrwl/jest": "8.0.1",
    "jest": "24.1.0",
    "@types/jest": "24.0.9",
    "ts-jest": "24.0.0",
    "@nrwl/workspace": "8.0.1",
    "@types/node": "~8.9.4",
    "dotenv": "6.2.0",
    "ts-node": "~7.0.0",
    "tslint": "~5.11.0",
    "typescript": "~3.4.5",
    "prettier": "1.16.4",
    "@angular/cli": "8.0.0"
  }
}

有人知道如何解决此问题吗?

2 个答案:

答案 0 :(得分:3)

您是否尝试升级RxJS?

V8具有最低版本要求:

  • Angular版本8.x
  • Angular CLI版本8.0.2
  • TypeScript 3.4.x版
  • RxJS 6.5.x版

https://ngrx.io/guide/migration/v8

更新2019-06-10:

NgRx v8.0.1的发行版由RxJS 6.4代替6.5,

答案 1 :(得分:0)

我遇到了类似的问题。我能够通过运行来解决它:

npm install rxjs@6.5.0