'cb is not a function'while switching context to native App

Hi,

I keep getting this while switching context to native App.

I am using:
Appium App version - 1.4.13
Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.11.3’,
device version : 8.4

Error:
ERROR running Appium command: cb is not a function
device version : 8.4

Stacktrace:
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:647)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.ios.IOSDriver.execute(IOSDriver.java:1)
at io.appium.java_client.AppiumDriver.context(AppiumDriver.java:546)
at com.xyz.framework.DriverBot.context(DriverBot.java:288)
at com.xyz.framework.DriverBot.switchContextToNativeApp(DriverBot.java:357)

Any suggestions on what could be causing this. Thanks!

Did you try updating Node?