kutyel / linq.ts

🌀LINQ for TypeScript

Home Page:http://kutyel.github.io/linq.ts/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

angular 9 typescript Uncaught TypeError: rtn.items.Count is not a function

syedadeel2 opened this issue · comments

I'm having the issue after compiling the typescript as soon I hit the button I got this error.

if (rtn.items.Count() === 0) { }

no build errors, just on runtime also I can see that Webpack has included the Linqts module as well.

This doesn't look as an error from the library, in your code, is rtn.items a List<A> of something? Or it is rtn the list? If that's the case you'll need to do rtn.Count()... If this is not the case please provide a failing test to the library so that we can fix the bug, but the Count() tests are passing fine 😄