加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

angular – 启动项目时出错(运行ng服务后)

发布时间:2020-12-17 17:47:38 所属栏目:安全 来源:网络整理
导读:我从我正在学习的在线MOOC下载了项目的zip文件.它一直工作到现在,但现在我面临如下所述的错误: – 我尝试再次运行ng服务并再次运行npm install但每次遇到以下错误: ERROR in node_modules/rxjs-compat/operator/shareReplay.d.ts(2,10): error TS2305: Mod
我从我正在学习的在线MOOC下载了项目的zip文件.它一直工作到现在,但现在我面临如下所述的错误: –

我尝试再次运行ng服务并再次运行npm install但每次遇到以下错误:

ERROR in node_modules/rxjs-compat/operator/shareReplay.d.ts(2,10):
error TS2305: Module ‘”/Users/ratnabhkumarrai/Downloads/prj-http-final
3/node_modules/rxjs/internal-compatibility/index”‘ has no exported
member ‘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-compat并且能够超越它.

“rxjs-compat”:“6.3.3”

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读