Cannot read property 'call' of undefined when making a change

  • Ionic Framework: 3.4.2
  • Ionic Native: ^2.9.0
  • Ionic App Scripts: 2.1.3
  • Angular Core: 4.1.3
  • Angular Compiler CLI: 4.1.3
  • Node: 6.11.0
  • OS Platform: Windows 10
  • Navigator Platform: Win32
  • User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36

everything was working just fine until i install ionic-native, every time i make a change it shows me this error.

Runtime Error
Cannot read property ‘call’ of undefined

so i need to re-run ionic serve everytime i make a change

You will have to see for which function call you are getting error.
As per the error, the Function you are trying to call is undefined hence you can’t call “call” method on it.

e.g. myFun.call(myCtx, arg1, arg2,…);
in your case myFun is undefined