Skip to content

Testing fails on 17.1.2 with a slightly older rxjs: export 'firstValueFrom' (imported as 'firstValueFrom') was not found in 'rxjs'  #54192

@bargholzryan

Description

@bargholzryan

Which @angular/* package(s) are the source of the bug?

core

Is this a regression?

Yes

Description

Running tests shows this error after updating to Angular 17.1.2 this morning (JST time).

./node_modules/@angular/core/fesm2022/testing.mjs:283:11-25 - Error: export 'firstValueFrom' (imported as 'firstValueFrom') 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, using, zip)

It seems to be related to this change 3ca34e6#diff-6d56fdd9ee4c67ada1b2c8ed428b61747b7dc5ad9158bd376ee7557b49281d5a.

We're on rxjs 6.6.7 currently, which seems to be in line with Angular's peer dependency ranges: "^6.5.3 || ^7.4.0".

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

./node_modules/@angular/core/fesm2022/testing.mjs:283:11-25 - Error: export 'firstValueFrom' (imported as 'firstValueFrom') 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, using, zip)

Please provide the environment you discovered this bug in (run ng version)

Angular CLI: 17.1.2
Node: 18.16.0
Package Manager: npm 9.5.1
OS: darwin x64

Angular: 17.1.2
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, google-maps, language-service, localize
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1701.2
@angular-devkit/build-angular   17.1.2
@angular-devkit/core            17.1.2
@angular-devkit/schematics      17.1.2
@schematics/angular             17.1.2
ng-packagr                      17.1.2
rxjs                            6.6.7
typescript                      5.2.2
zone.js                         0.14.3

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: coreIssues related to the framework runtime

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions