Ionic 3 serve showing a different line of code in error?


#1

I am running ionic serve and it shows an error:

[10:53:49]  typescript: src/pages/tab-feed/schedule.ts, line: 50
        Supplied parameters do not match any signature of call target.
  L50:     this.logService.getFeed().map(data => data.json())

However, my line of code is actually:

 L50: this.token = token;
  L51: this.logService.getFeed(this.token).map(data => data.json())

Why does my build show this error? I’ve tried restarting my server and clearing cache but it is still showing this error.


#2

After reverting a previous Git commits it turns out that my problem was caused by a component that was not generated properly by the CLI.