javascript,Angular5,RxJS
web前端-js教程前言
名片赞网源码,ubuntu商店应用推荐,tomcat监听器源码,地球爬虫数量,php小说爬取,东坑seo优化关键词哪家好lzw
RxJS是一种针对异步数据流编程工具,或者叫响应式扩展编程;可不管如何解释RxJS其目标就是异步编程,Angular引入RxJS为了就是让异步可控、更简单。可是最近在升级中遇到了一些问题,下面就来给大家介绍下,给同样遇到这个问题发朋友们一些参考,下面话不多说了,来一起看看详细的介绍吧。共享服务系统 源码,vscode提示code损坏,ubuntu下rpm,tomcat域名无法解析,爬虫泄殖腔,php 正则 ip地址,淄博seo业务培训,手机网站 登陆源码下载,中文wordpress博客模板下载lzw
Angular 5.0.5升级RxJS到5.5.3报错:机器视觉 源码,ubuntu报错get命令,集成tomcat服务器,nike登录爬虫,php如何打开log,百度信息流代运营公司seo推广lzw
ERROR Error: Uncaught (in promise): EmptyError: no elements in sequenceEmptyError: no elements in sequence at new EmptyError (EmptyError.js:28) at FirstSubscriber._complete (first.js:154) at FirstSubscriber.Subscriber.complete (Subscriber.js:122) at MergeMapSubscriber._complete (mergeMap.js:150) at MergeMapSubscriber.Subscriber.complete (Subscriber.js:122) at MapSubscriber.Subscriber._complete (Subscriber.js:140) at MapSubscriber.Subscriber.complete (Subscriber.js:122) at EmptyObservable._subscribe (EmptyObservable.js:83) at EmptyObservable.Observable._trySubscribe (Observable.js:172) at EmptyObservable.Observable.subscribe (Observable.js:160) at new EmptyError (EmptyError.js:28) at FirstSubscriber._complete (first.js:154) at FirstSubscriber.Subscriber.complete (Subscriber.js:122) at MergeMapSubscriber._complete (mergeMap.js:150) at MergeMapSubscriber.Subscriber.complete (Subscriber.js:122) at MapSubscriber.Subscriber._complete (Subscriber.js:140) at MapSubscriber.Subscriber.complete (Subscriber.js:122) at EmptyObservable._subscribe (EmptyObservable.js:83) at EmptyObservable.Observable._trySubscribe (Observable.js:172) at EmptyObservable.Observable.subscribe (Observable.js:160) at resolvePromise (zone.js:824)
这应该是RxJS升级导致的,参考issue。
方法一
在所有的route里加上pathMath:”full”,如
const routes: Routes = [ { path: "", component: IndexComponent }, { path: "home", component: HomeComponent }, { path: "about", component: AboutComponent }, ...];
改为
const routes: Routes = [ { pathMatch: 'full', path: "", component: IndexComponent }, { pathMatch: 'full', path: "home", component: HomeComponent }, { pathMatch: 'full', path: "about", component: AboutComponent }, ...];
方法二
RxJS降为版本5.5.2。
注意:降版本时一定要把之前的卸载掉。