Questions tagged [rxjs-compat]

Package is required to get backwards compatibility with RxJS previous to version 6. It contains the imports to add operators to `Observable.prototype` and creation methods to `Observable`.

This package is required to get backwards compatibility with RxJS previous to version 6. It contains the imports to add operators to Observable.prototype and creation methods to Observable. This is what allows, for instance, dot-chaining:

Observable.interval(1)
  .map(i => i * i)

vs

Observable.interval(1)
  .pipe(map(i => i * i))

More information: https://github.com/ReactiveX/rxjs/tree/master/compat

9 questions
30
votes
4 answers

rxjs/Subscription has no exported member 'Subscription'

I updated my angular project and all my dependencies to latest version. Without to much trouble I solved most of the dependency issues, but I'm still stuck on RxJS. Here is my package.json: "dependencies": { "@angular-devkit/build-angular":…
Øystein Seel
  • 917
  • 2
  • 9
  • 30
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":…
2
votes
2 answers

How to use only a part of rxjs-compat, or write a custom rxjs-compat?

We've updated our project to use Angular & Rxjs 6 and all works fine. We've also updated the code to use the pipe operators, so we would like to drop rxjs-compat. The only issue is that one of our dependencies still uses the old import syntax for…
Dan Manastireanu
  • 1,802
  • 1
  • 15
  • 18
2
votes
3 answers

Property 'map' does not exist on type 'Observable' after upgrading rxjs to 6

I upgraded my Angular application from version 5.2 to 6.0 with the instructions from https://update.angular.io. Now my Angular application doesn't build because of the "rxjs-5-to-6-migrate" migration: ERROR in bla.ts: error TS2339: Property…
Shamshiel
  • 2,051
  • 3
  • 31
  • 50
1
vote
0 answers

TS rxjs-compat doesn't support prototype operators?

I'm following this migration guide to update from rxjs 5.5.5 to 6..**. It looks from this article and many other posts that simply having rxjs-compat in my project will allow to migrate step-by-step. Even worse it seems to work for everyone else.…
Olena Horal
  • 1,166
  • 3
  • 11
  • 26
1
vote
1 answer

Importing from 'rxjs' with 'rxjs-compat' present as an additional dependency does not make compatible Observables

The phrasing of the rxjs 5-6 migration instructions, as well as blog posts like this one imply that simply by having 'rxjs-compat' as a dependency of our project alongside 'rxjs' then Observables, Subjects, etc imported from 'rxjs' will be…
anomico
  • 11
  • 2
0
votes
1 answer

Property 'combineLatest' does not exist on type 'typeof Observable'

Im trying to add a InstantSearch Function into my website. Im using Angular 12.2 and working with a firestore database with the index "book-data". Im using the following code in my search component: import { Component, OnInit } from…
0
votes
1 answer

Problems after upgrading my Angular project from 5x to 6x

I have just upgraded my Angular 5 project to 6 following the usual guide. I have updated my packages and have also installed the rxjs-compat package and run the following to migrate from rxjs 5 to rxjs 6 npm install -g rxjs-tslint npm install…
0
votes
0 answers

When migrating to rxjs 6 gulp build.bundle.rxjs throws error

I am upgrading from rxjs 5.5 to 6.2.1. I went through the code base and made all the changes suggested in the rxjs migration document, changed imports, piping instead of chaining, etc. When I run my npm install the build.bundle.rxjs script throws an…
maxsands1503
  • 157
  • 2
  • 15