8000 rx-angular/template: virtual scrolling not compatible with rxjs 6 with AutoSizeVirtualScrollStrategy · Issue #1846 · rx-angular/rx-angular · GitHub
[go: up one dir, main page]

Skip to content
rx-angular/template: virtual scrolling not compatible with rxjs 6 with AutoSizeVirtualScrollStrategy #1846
Closed
@Phil147

Description

@Phil147

Description

The peer dependency for rxjs of rx-angular/template is rxjs: '^6.5.3 || ^7.4.0. But using the virtual scrolling with the AutoSizeVirtualScrollStrategy throws an error when used with rxjs 6.6.7 because it is importing an operator from rxjs instead of rxjs/operators, see https://github.com/rx-angular/rx-angular/blob/main/libs/template/experimental/virtual-scrolling/src/lib/scroll-strategies/autosize-virtual-scroll-strategy.ts#L18-L21

Steps to Reproduce the Issue

https://stackblitz.com/edit/stackblitz-starters-bcovqma9

Throws:

No matching export in "node_modules/rxjs/_esm2015/index.js" for import "pairwise"
node_modules/@rx-angular/template/fesm2022/template-experimental-virtual-scrolling.mjs:4:55

Environment

"@rx-angular/template": "^19.2.0",

Angular CLI: 19.0.7
Node: 18.20.3
Package Manager: npm 10.2.3
OS: linux x64

Angular: 19.0.6
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, router

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.1900.7
@angular-devkit/core         19.0.7
@angular-devkit/schematics   19.0.7
@angular/build               19.0.7
@angular/cli                 19.0.7
@schematics/angular          19.0.7
rxjs                         6.6.7
typescript                   5.6.3
zone.js                      0.15.0

Tasks to Resolve This

Use the v6 backwards compatible import paths for operators.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0