-
Notifications
You must be signed in to change notification settings - Fork 434
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
[Bug]: Library not compiling v14.1.3, map not found on rxjs #1502
Comments
I reverted to version 14.1.2 and everything started to work again. |
Hi, if it's OK I can add an extra step in the CI to verify that this library works with RxJS v6 (and fix the "bad" imports) |
Hi, ok, I'm receiving this error using rxjs 6.6.7. |
We use 7.4.0, can you update the rxjs? @timdeschryver @FabianGosebrink Do you think we need to support V6 versions? Greetings Damien |
I could be wrong here, but I think the (only?) breaking change that affects us is how the operators are imported. RxJs 7 exports their operators from If it's only that, I think we should try to keep supporting v6. Instead of introducing an extra build step, we could also add some ESLint rule (if it exists), or create or own script to fix these imports. |
Hey Tim, thanks for this. It might be that my IDE fixes that imports and so V6 is not supported anymore! That's me to blame in this case. I just checked if there is an ESLint rule, but did not find a one that fits. We had a build step which installs everything like normal but uses RxJs 6 in addition and installs the library then. I will add that build step and fix the imports now.
I will add this build rule again and fix the bad imports. But it would be nice, like @timdeschryver said, to have a lint rule for this. |
I can not reproduce the error locally and the build step also run through fine. |
Hey @fdellasoppa, can you provide a sample repo to reproduce the issue? Thanks! |
I suppose the error comes from here. Or we should build the whole app against RxJS 6 🤔, but a linter should be easier 😅. |
Thanks for the hint! Just fixed that in the related PR. Yes, it might be that you need to explicitly use the |
@fdellasoppa should be fixed in the next release. |
Wonderful! Thanks! |
Thanks. Do you, @timdeschryver, know a linting rule to check against rxjs 6 Imports? Otherwise I would try to write one. I searched for it but did not find one. |
@FabianGosebrink I haven't find one either. |
Ah nice! Thank you very much! |
What Version of the library are you using?
14.1.3
Describe the bug
A clear and concise description of what the bug is.
My project won't compile as the library angular-auth-oidc-client is throwing an error:
./node_modules/angular-auth-oidc-client/fesm2020/angular-auth-oidc-client.mjs:5286:36-41 -
Error: export 'map' (imported as 'map$1') was not found in 'rxjs' (possible exports: ArgumentOutOfRangeError, AsyncSubject, BehaviorSubject, ConnectableObservable, EMPTY, EmptyError, GroupedObservable, NEVER, Notification, NotificationKind, ObjectUnsubscribedError, Observable, ReplaySubject, Scheduler, Subject, Subscriber, Subscription, TimeoutError, UnsubscriptionError, VirtualAction, VirtualTimeScheduler, animationFrame, animationFrameScheduler, asap, asapScheduler, async, asyncScheduler, bindCallback, bindNodeCallback, combineLatest, concat, config, defer, empty, forkJoin, from, fromEvent, fromEventPattern, generate, identity, iif, interval, isObservable, merge, never, noop, observable, of, onErrorResumeNext, pairs, partition, pipe, queue, queueScheduler, race, range, scheduled, throwError, timer, us...
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Project compiles and runs.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: