我使用
ngx-infinite-scroll
命令安装了 npm install ngx-infinite-scroll --save
库。如 docs.Error: node_modules/ngx-infinite-scroll/lib/ngx-infinite-scroll.directive.d.ts:28:18 - error TS2707: Generic type 'ɵɵDirectiveDeclaration' requires between 6 and 8 type arguments
一些已经存在的解决方案:
我又读了几篇文章,但没有找到具体的解决方案。
我使用的是最新版本的 ngx-infinite-scroll
15.0.0
,但我的 Angular 版本是 14
。 14
将 ngx-infinite-scroll 版本降级为
npm install [email protected]