I have angular 2 webpack application, all webpack,karma configuration created as per angular.io webpack guide. I am not using aot. I am writing jasmine unit test spec to te
I was bitten by the same error next day - this time the problem was buried in the HTML file. Using a simple array length test for *ngIf
0">
had to be refactored into
with a getter as in:
get myArrayNotEmpty(){
return this.myArray && this.myArray.length > 0;
}
I am a bit irritated though that such a variety of causes is covered by one very misleading and unhelpful message.