Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import errors with RxJS 7 #55

Open
lobo78 opened this issue Jan 10, 2024 · 0 comments
Open

Import errors with RxJS 7 #55

lobo78 opened this issue Jan 10, 2024 · 0 comments

Comments

@lobo78
Copy link

lobo78 commented Jan 10, 2024

The latest version of backoff-rxjs (7.0.0) is supposed to support RxJS 7. Howver, when upgrading to RxJS 7.0.1, I see the following build errors:

./node_modules/backoff-rxjs/dist/esm2015/observable/intervalBackoff.js:14:31-37 - Error: export 'expand' (imported as '
expand') was not found in 'rxjs'                                                                                          
./node_modules/backoff-rxjs/dist/esm2015/observable/intervalBackoff.js:15:87-92 - Error: export 'mapTo' (imported as 'm
apTo') was not found in 'rxjs'                               
./node_modules/backoff-rxjs/dist/esm2015/operators/retryBackoff.js:21:11-16 - Error: export 'defer' (imported as 'defer
') was not found in 'rxjs'                                    
./node_modules/backoff-rxjs/dist/esm2015/operators/retryBackoff.js:26:17-20 - Error: export 'iif' (imported as 'iif') w
as not found in 'rxjs'
./node_modules/backoff-rxjs/dist/esm2015/operators/retryBackoff.js:28:13-18 - Error: export 'timer' (imported as 'timer
') was not found in 'rxjs'
./node_modules/backoff-rxjs/dist/esm2015/operators/retryBackoff.js:28:83-93 - Error: export 'throwError' (imported as '
throwError') was not found in 'rxjs'

It seems that in RxJS 7, the above operators must be imported from rxjs/operators rather than rxjs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant