【发布时间】:2019-06-26 17:14:18
【问题描述】:
我从我正在学习的在线 MOOC 下载了项目的 zip 文件。到目前为止它工作正常,但现在我面临如下所述的错误:-
我尝试再次运行ng serve 并再次运行npm install 但每次遇到以下错误:
node_modules/rxjs-compat/operator/shareReplay.d.ts(2,10) 中的错误: 错误 TS2305:模块“”/Users/ratnabhkumarrai/Downloads/prj-http-final 3/node_modules/rxjs/internal-compatibility/index"' 没有导出 成员“ShareReplayConfig”。
import { Observable, SchedulerLike } from 'rxjs';
import { ShareReplayConfig } from 'rxjs/internal-compatibility';
/**
* @method shareReplay
* @owner Observable
*/
export declare function shareReplay<T>(this: Observable<T>, config:
ShareReplayConfig): Observable<T>;
export declare function shareReplay<T>(this: Observable<T>,
bufferSize?: number, windowTime?: number, scheduler?: SchedulerLike):
Observable<T>;
【问题讨论】:
-
你使用的是哪个版本的 rxjs?
-
@JohanRin rxjs 6.4.0
标签: angular node-modules