TS2339: Property 'debounceTime' does not exist on type 'Observable<any>'. - Angular 6 矫情吗;* 2021-09-29 15:40 317阅读 0赞 【出现的问题】TS2339: Property 'debounceTime' does not exist on type 'Observable<any>'. ![1208462-20180726141347357-24354854.png][] -------------------- 【解决方法】 第一步,在 Terminal 更新 Angular ng update 第二步,fix the rxjs npm i -g rxjs-tslint 第三步,修改代码,不再使用debounceTime(500),而是在外边添加 .pipe(),即变成.pipe(debounceTime(500)) this.titleFilter.valueChanges .pipe(debounceTime(500)) .subscribe( value => this.keyword ); -------------------- 【*参考*】 *https://stackoverflow.com/questions/49811177/angular-6-rxjs-import-syntax\#answer-50342338* *https://github.com/ReactiveX/rxjs/issues/3723\#issuecomment-390855559* 转载于:https://www.cnblogs.com/coco1989/p/9371629.html [1208462-20180726141347357-24354854.png]: /images/20210725/4dc879907092442da84e938791093ca2.png
还没有评论,来说两句吧...