5.5.3 EmptyError: no elements in sequence
See original GitHub issueRxJS 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
Issue Analytics
- State:
- Created 6 years ago
- Reactions:42
- Comments:30 (2 by maintainers)
Top Results From Across the Web
EmptyError: no elements in sequence - angular - Stack Overflow
This error happens when using RxJS 5.5.3 with angular (version 4/5), so just skip RxJS 5.5.3, and use RxJS 5.5.4 by adding "rxjs":...
Read more >Uncaught (in promise): EmptyError: no elements in sequence
In this article we'll see how to fix the `Error: Uncaught (in promise): EmptyError: no elements in sequence` error caused by the Angular ......
Read more >Angular 5 - EmptyError: no elements in sequence
EmptyError : no elements in sequence. The problem turned out not to be related to Angular directly but to RxJS 5.5.3.
Read more >Implementing Guard In Angular 5 App - C# Corner
If you are getting an error as “ERROR Error: Uncaught (in promise): EmptyError: no elements in sequence”, please make sure that you have ......
Read more >Angular – EmptyError: no elements in sequence - iTecNote
I'm kind of at a loss and would appreciate any help. Best Solution. This error happens when using RxJS 5.5.3 with ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.