I installed ngx-infinite-scroll library using npm install ngx-infinite-scroll --save command. As provided in the 
Some already existing solutions:
Found a similar error message question asked on stackflow itself :

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 is14.
So I downgraded ngx-infinite-scroll version to14usingnpm install [email protected]
And error got resolved.

