Home > database >  error TS2707: Generic type 'ɵɵDirectiveDeclaration' requires between 6 and 8 type argument
error TS2707: Generic type 'ɵɵDirectiveDeclaration' requires between 6 and 8 type argument

Time:02-04

I installed ngx-infinite-scroll library using npm install ngx-infinite-scroll --save command. As provided in the enter image description here

Some already existing solutions:

  • Found a similar error message question asked on stackflow itself : enter image description here

    I read few more article but didnt found a concrete solution.

    CodePudding user response:

    I was using latest version of the ngx-infinite-scroll which is 15.0.0, but my Angular version is 14.

    So I downgraded ngx-infinite-scroll version to 14 using npm install [email protected]
    And error got resolved.

    ScreenShot: enter image description here

  • Related