Component changes not reflected in Ionic Serve

The changes done specifically in any on my Ionic Components are not loading in Ionic Serve. I know this issue is posted before and tried everything but the issue is still is there. Its still holding the reference of my old code and showing it as error. This is happening only for Components.
ionic info:
@ionic/cli-utils : 1.15.2
ionic (Ionic CLI) : 3.15.2

global packages:

cordova (Cordova CLI) : 7.1.0

local packages:

@ionic/app-scripts : 2.1.3
Cordova Platforms  : android 6.3.0 ios 4.5.2
Ionic Framework    : ionic-angular 3.6.0

System:

ios-deploy : 1.9.1
ios-sim    : 5.0.13
Node       : v6.11.2
npm        : 3.10.10
OS         : macOS Sierra
Xcode      : Xcode 9.0.1 Build version 9A1004

Old, you should upgrade first.

Upgraded. Still facing the same issue.
Tried npm run build but its giving the same typescript error for my old code.

   @ionic/cli-utils  : 1.15.2
    ionic (Ionic CLI) : 3.15.2

global packages:

cordova (Cordova CLI) : 7.1.0

local packages:

@ionic/app-scripts : 3.0.1
Cordova Platforms  : android 6.3.0 ios 4.5.2
Ionic Framework    : ionic-angular 3.6.0

System:

ios-deploy : 1.9.1
ios-sim    : 5.0.13
Node       : v6.11.2
npm        : 3.10.10
OS         : macOS Sierra
Xcode      : Xcode 9.0.1 Build version 9A1004

What exactly do you mean by “Ionic Components”?
What did you change exactly?

By Component I mean custom Component. I have created created few Ionic custom Component as

$ ionic generate component MyComponent

It was working just fine for last 1 month and there was no changes to those component TS files.
Few days back I hade to change some code in one of the Component TS file and the issue stated coming. The TypeScript error I am getting is for my old code that is not even in the TS file now.

A method inside the Component TS was calling another method of a Provider. I changed the number of parameters in the signature of the Provider for 2 to 1 and changed the Component method accordingly. Its still showing the error that my component method has 2 parameter and trying to calling my Provider method with 1 parameter.

1 Like

Maybe create an issue here if you don’t get a better answer: https://github.com/ionic-team/ionic-cli/issues

Created https://github.com/ionic-team/ionic-cli/issues/2847