elf icon indicating copy to clipboard operation
elf copied to clipboard

Unable to use @ngneat/elf with RxJS 6.x

Open ThomasBurleson opened this issue 3 years ago • 1 comments

Which @ngneat/elf-* package(s) are the source of the bug?

Is this a regression?

Yes

Description

RxJS 7.x exports operators as part of rxjs; developers use import {...} from 'rxjs' RxJS 6.x exports operators only via rxjs/operators

Unfortunately, some of the code within @ngneat/elf uses formats that ONLY supports RxJS 7.x:

  • entity-state-history.ts uses import { Subscription, pairwise, filter, map, startWith } from 'rxjs';
  • request-cache.ts uses import { distinctUntilKeyChanged, Observable, pipe } from 'rxjs';

Please provide the environment you discovered this bug in

Projects using Angular 13.x + RxJS 6.5.x will not work with latest `@ngneat/elf-requests`

Here is a sample `ng build` error output:

image

ThomasBurleson avatar Aug 25 '22 18:08 ThomasBurleson

Any reason you're not upgrading to v7? It should be seamless.

NetanelBasal avatar Aug 26 '22 06:08 NetanelBasal