Questions tagged [rxjs7]
30 questions
9
votes
1 answer
TS7016: Could not find a declaration file for module 'rxjs'
I have upgraded my Angular App dependency and successfully installed them. Unfortunately I am now unable to use 'rxjs'. Below is the error returned by the IDE.
TS7016: Could not find a declaration file for module…

Owen Kelvin
- 14,054
- 10
- 41
- 74
3
votes
1 answer
Module not found: Error: Package path ./index is not exported from package node_modules/rxjs (see exports field in /node_modules/rxjs/package.json)
I am trying RxJs7 in my angular 12.2.0 project and it seems like the path of rxjs operator and method changed.
I am getting the below error
./dist/candypal/website/fesm2015/candypal-website.js:8:0-50 - Error: Module not found: Error: Package path…

Aniruddha Das
- 20,520
- 23
- 96
- 132
2
votes
0 answers
Error while upgrading rxjs from 6.5.5 to 7.4 in angular 13
I upgraded my angular version from 10 to 13 so I tried to upgrade rxjs from 6.5.5 to 7.4, rxjs-compat version from 6.6.2 to 6.6.7 that time I was getting the error. Please give me any solution.[![enter image description here][1]][1]
{
"name":…

Yaswanth Kumar
- 31
- 2
2
votes
1 answer
How to replicate delay from RxJs 6.x?
The behavior of delay has changed in RxJs 7. While I understand the reasoning for the change, it was useful for a demo project that I use to simulate over-the-wire API delays. In RxJs 6, the code below would only log to the console after the 5…

Jim Cooper
- 5,113
- 5
- 30
- 35
1
vote
1 answer
Ionic: ERESOLVE could not resolve: Found: rxjs@7.x.x
Does anyone encounter this issue when trying to build ionic project with capacitor?
I have an Ionic project which has different packages for each functionality. I am trying to export my project into the android studio using ionic capacitor build…

Haku
- 23
- 1
- 5
1
vote
1 answer
Rxjs TestScheduler/RunHelper Concrete Example
I have been watching videos and reading articles, but so far they are all either over my head, or are too simplistic. (Looking for a good goldilocks-type practical explanation here.)
I have an angular service that has an observable property, like…

emery.noel
- 1,073
- 1
- 9
- 24
1
vote
1 answer
Since Angular 12.2.x supports rxjs 7.0.0, is 7.5.x is also compatible
Since Angular 12.2.x branch recently added support for rxjs 7.0.0, does it mean that strictly 7.0.x is supported or we can even use 7.5.x too?

Aayush Kumar
- 37
- 1
- 8
1
vote
2 answers
Angular / RxJs: Download Progress
I have working solution to getting download progress in Angular 13 / RxJs 7.
First I defined some enums:
export enum RequestType {
get = 'GET',
post = 'POST',
put = 'PUT',
delete = 'DELETE',
}
export enum ActionType {
download = 1,
…

Patrick
- 5,526
- 14
- 64
- 101
1
vote
0 answers
rxjs - `share` is not working as expected
I have the following helper rxjs operator:
import { share } from 'rxjs/operators';
export const shareResetOnError = () => share({
resetOnError: true,
resetOnComplete: false
});
I also have the following spec for this operator:
import {…

Random
- 3,807
- 2
- 30
- 49
1
vote
1 answer
Subscribe showing deprecated
this.userService.addUser(this.user).subscribe(
(data)=>{
//success
console.log(data);
this._snack.open('Registered Successfully', 'OK', {
duration: 2000,
verticalPosition: 'top',
horizontalPosition: 'center',
…

Roshankumar Bisoi
- 21
- 1
- 2
1
vote
1 answer
How to set a timeout config for lastValueFrom() using RxJS 7 in Angular 13?
Quote from RxJS dev team:
To fix all these issues, we decided to deprecate toPromise(), and to introduce the two new helper functions for conversion to Promises.
Use one of the two new functions
As a replacement to the deprecated
toPromise()…

Matthew
- 93
- 2
- 7
0
votes
1 answer
SkipUntil with params from observable chain
I have an observable chain that creates an object and then waits for user input until it continues, i.e. something like this:
of(document.createElement("button"))
.pipe(
switchMap((button) =>
fromEvent(button, "click").pipe(
…

JonasK
- 149
- 2
- 8
0
votes
1 answer
Can't catch the error from BehaviorSubject, or any subject in rxjs 7
The idea is to catch the error message Next err =================> thrown after 6 sec. In console log we can see only first thrown error, which is werry strange behavior.
Here is link in stakblitz.…

BASKA
- 311
- 4
- 15
0
votes
2 answers
Debounce multiple search filters
I am creating a search page in Angular where the user can search for people via
the name
the date of birth
The search method takes the encapsulated search parameters as an argument:
inputName: Subject = new…

wahok
- 21
- 5
0
votes
0 answers
No value is passed through the pipe on RXJS / Angular
No value is passed through the pipe. I subscribed to the from() and a value was produced. But if I use the pipe method on this from(), nothing is emitted. I tried to put a tap() and a switchMap().
I use RXJS 7.5.0 and Angular 14.2.0.
import {…

Asalvatore
- 1
- 2