rxjs: 5.5.3 EmptyError: no elements in sequence
RxJS version: 5.5.3
Code to reproduce: since my update to 5.5.3 i’m getting errors in otherwise perfectly fine running angular 5.x application
this is the error i’m getting this morning
all was working perfectly prior to 5.5.3
difficult for me to trap what the reason could be thanks
Error: Uncaught (in promise): EmptyError: no elements in sequence
EmptyError: no elements in sequence
at new EmptyError (EmptyError.js:27)
at FirstSubscriber._complete (first.js:154)
at FirstSubscriber.Subscriber.complete (Subscriber.js:121)
at MergeMapSubscriber._complete (mergeMap.js:144)
at MergeMapSubscriber.Subscriber.complete (Subscriber.js:121)
at MapSubscriber.Subscriber._complete (Subscriber.js:139)
at MapSubscriber.Subscriber.complete (Subscriber.js:121)
at EmptyObservable._subscribe (EmptyObservable.js:82)
at EmptyObservable.Observable._trySubscribe (Observable.js:173)
at EmptyObservable.Observable.subscribe (Observable.js:161)
at new EmptyError (EmptyError.js:27)
at FirstSubscriber._complete (first.js:154)
at FirstSubscriber.Subscriber.complete (Subscriber.js:121)
at MergeMapSubscriber._complete (mergeMap.js:144)
at MergeMapSubscriber.Subscriber.complete (Subscriber.js:121)
at MapSubscriber.Subscriber._complete (Subscriber.js:139)
at MapSubscriber.Subscriber.complete (Subscriber.js:121)
at EmptyObservable._subscribe (EmptyObservable.js:82)
at EmptyObservable.Observable._trySubscribe (Observable.js:173)
at EmptyObservable.Observable.subscribe (Observable.js:161)
at AppErrorHandler.handleError (app.exception.ts:47)
at Object.next (core.js:5377)
at SafeSubscriber.schedulerFn [as _next] (core.js:4223)
at SafeSubscriber.__tryOrUnsub (Subscriber.js:246)
at SafeSubscriber.next (Subscriber.js:193)
at Subscriber._next (Subscriber.js:132)
at Subscriber.next (Subscriber.js:96)
at EventEmitter.Subject.next (Subject.js:63)
at EventEmitter.emit (core.js:4203)
at core.js:4652
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 42
- Comments: 30 (2 by maintainers)
Links to this issue
Commits related to this issue
- Downgrade to rxjs 5.5.2 from 5.5.3 Because of https://github.com/ReactiveX/rxjs/issues/3151 — committed to Ecodev/dilps by sambaptista 7 years ago
- chore(e2e-router): pin rxjs version to 5.5.2 To make tests work until the fix for https://github.com/ReactiveX/rxjs/issues/3151 is released. — committed to NativeScript/nativescript-angular by sis0k0 7 years ago
- chore(e2e-router): pin rxjs version to 5.5.2 To make tests work until the fix for https://github.com/ReactiveX/rxjs/issues/3151 is released. — committed to NativeScript/nativescript-angular by sis0k0 7 years ago
- Временная мера. https://github.com/ReactiveX/rxjs/issues/3151. — committed to tumadash/startup by deleted user 7 years ago
- downgrade to rxjs 5.5.2 (https://github.com/ReactiveX/rxjs/issues/3151) — committed to ZGIS/smart-portal-webgui by allixender 7 years ago
This can help (using rxjs 5.5.3 - “rxjs”: “^5.5.2”)
Bug with empty path:
const routes: Routes = [ { path: “”, component: SynthesisComponent }, { path: “home”, component: SynthesisComponent }, { path: “about”, component: AboutComponent }, … ];
Ok when using pathMatch: ‘full’:
const routes: Routes = [ { pathMatch: ‘full’, path: “”, component: SynthesisComponent }, { pathMatch: ‘full’, path: “home”, component: SynthesisComponent }, { pathMatch: ‘full’, path: “about”, component: AboutComponent }, … ];
From https://github.com/angular/angular-cli/issues/8724 (nawnitraman)
Me too with an Angular 5.0.5 project. After downgrading rxjs to 5.5.2 the problem went away.
After an update of my angular project I get the same error. In my case, routing with children and outlets doesn’t work.
Fixed this issue in my setup by changing rxjs from ^5.4.2 to 5.5.2.
Please try
rxjs@5.5.4
it fixed my issuesHI,
I’ve the same error.
Experiencing the same thing. Had to fix rxjs version in package.json to prevent CI from installing version 5.5.3:
"rxjs": "5.5.2"
update to 5.5.5 is ok.
We have added quick fix for this and patch will be released soon.
5.5.4 works
FYI: In react project, v5.5.3 upgrade also breaking app. In this case
import Rx from 'rxjs/Rx'
is returning undefined; producingTypeError: Cannot read property 'Subject' of undefined
. This was functioning fine prior to to this minor release.I was able to get it working, thank you @beeman
Tried 5.5.5 as you suggested- still getting the same error…
See Angular issue #20752 for a minimal reproduction of the problem.