I've been developing a login system using TypeScript but I keep encountering an error that I can't figure out. Here's the issue in detail:
https://i.sstatic.net/PN4N8.png
The problem arises when the this.startLoginAnimation() function is called within the attemptLogin() function, it throws an error:https://i.sstatic.net/M6VJr.png
even though it is clearly a function. It's worth mentioning that Visual Studio Code doesn't show any complaints about it.