Angular Ngx无限卷轴在我的项目中的角度si投掷错误

Angular Ngx无限卷轴在我的项目中的角度si投掷错误,angular,npm,nginfinitescroll,Angular,Npm,Nginfinitescroll,我使用的是Angular版本11.0.4。 我正在尝试使用npm包实现无限滚动。 我做了文档中的每一步 我得到以下错误: Error: node_modules/ngx-infinite-scroll/src/modules/ngx-infinite-scroll.module.d.ts:1:22 - error NG6002: Appears in the NgModule.imports of EventCreationModule, but could not be resolved to

我使用的是Angular版本11.0.4。 我正在尝试使用
npm
包实现无限滚动。 我做了文档中的每一步

我得到以下错误:

Error: node_modules/ngx-infinite-scroll/src/modules/ngx-infinite-scroll.module.d.ts:1:22 - error NG6002: Appears in the NgModule.imports of EventCreationModule, but could not be resolved to an NgModule class.
   
This likely means that the library (ngx-infinite-scroll), which declares InfiniteScrollModule has not been processed correctly by ngcc or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.
    
    1 export declare class InfiniteScrollModule {
                           ~~~~~~~~~~~~~~~~~~~~
    node_modules/ngx-infinite-scroll/src/modules/ngx-infinite-scroll.module.d.ts:1:22 - error NG6003: Appears in the NgModule.exports of EventCreationModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class.
   
This likely means that the library (ngx-infinite-scroll) which declares InfiniteScrollModule has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.

如果有人知道如何解决这个问题,我将非常感激。提前感谢。

您只需停止程序一次,然后再次运行