I stumbled on this situation when refactoring a functionality to return an object in lieu of an array, but I forgot to update the return value Within the if statement. Moderator Observe: This appears to generally be a bug in the most recent release from the Angular Language IDE extension. https://smartworldeveloper.in/