Hey everyone, I know there are already a few questions out there about Typescript compilation errors, but I'm facing a unique challenge that I can't quite figure out.
I'm currently working on the Angular Tour of Heroes app and trying to complete the section on Http. However, when I look at my hero.service.ts
file, it's throwing this error:
error TS2339: Property 'handleError' does not exist on type 'HeroService'
While I understand that similar issues have been discussed before related to TypeScript configuration, the root cause behind this particular problem seems elusive.
As someone who is still getting a hang of TypeScript (and Angular), troubleshooting this on my own has proven to be a bit challenging.
This is how my code currently looks:
CODE:
// Code snippet here...
...
If you believe that there might be another version of this question elsewhere, please point me in that direction. Thanks for your help!
Appreciate it.