Javascript 出口';分区';在'中未找到;rxjs';

Javascript 出口';分区';在'中未找到;rxjs';,javascript,angular,npm,rxjs,Javascript,Angular,Npm,Rxjs,我正在尝试在我的angular项目中使用ng http loader。我已经安装了ng http加载程序包。在编译项目时,我遇到了一个错误。错误是 在“rxjs”中未找到导出“分区” package.json: “依赖项”:{ “@angular/animations”:“^8.2.2”, “@angular/cdk”:“^8.1.3”, “@angular/common”:“~8.0.0”, “@angular/compiler”:“~8.0.0”, “@angular/core”:“~8.0

我正在尝试在我的angular项目中使用ng http loader。我已经安装了ng http加载程序包。在编译项目时,我遇到了一个错误。错误是

在“rxjs”中未找到导出“分区”

package.json

“依赖项”:{
“@angular/animations”:“^8.2.2”,
“@angular/cdk”:“^8.1.3”,
“@angular/common”:“~8.0.0”,
“@angular/compiler”:“~8.0.0”,
“@angular/core”:“~8.0.0”,
“@angular/forms”:“~8.0.0”,
“@angular/material”:“^8.1.3”,
“@angular/platform浏览器”:“~8.0.0”,
“@angular/platform browser dynamic”:“~8.0.0”,
“@angular/router”:“~8.0.0”,
“hammerjs”:“^2.0.8”,
“ng http加载程序”:“^6.0.1”,
“rxjs”:“^6.5.2”,
“tslib”:“^1.9.0”,
“zone.js”:“~0.9.1”
},

转到ng-http-loader.js。您可以看到以下内容

import { ReplaySubject,partition, merge, timer } from 'rxjs';
import { finalize, switchMap, debounce, distinctUntilChanged, tap} from 
'rxjs/operators';
您只需将其更改为:

import { ReplaySubject, merge, timer } from 'rxjs';
import { finalize, switchMap, debounce, distinctUntilChanged, tap, partition } 
from 'rxjs/operators';

ng-http-loader.js没有这样的导入功能

你可以显示你的包.json吗?你可以回答你的问题,请不要在评论中发布代码在stackblitz上产生错误这个问题发生在RxJS版本低于6.5.0而你的版本高于6.5.0的情况下。升级RxJS版本到6.5.3对我来说很有用<代码>npm irxjs@6.5.3