Code-push sdk.isAuthenticated is not a function


I am trying to run the code-push release command code-push release-cordova MyApp-Android android -m on my ionic-v3 project. But after Releasing update contents to CodePush: I am getting the below error:

[Error] sdk.isAuthenticated(...).then(...).then(...).then(...).finally is not a function

I also tried installing the latest version of the code-push plugin but got the same error.

Project Details

Android target SDK Version: 30

ionic info:

cli packages: (C:\Users\CGauns\AppData\Roaming\nvm\v8.9.4\node_modules)

    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0

global packages:

    cordova (Cordova CLI) : 8.0.0

local packages:

    @ionic/app-scripts : 3.1.9
    Cordova Platforms  : android 8.0.0
    Ionic Framework    : ionic-angular 3.9.2


    Node : v8.9.4
    npm  : 5.6.0
    OS   : Windows 10

Environment Variables:

    ANDROID_HOME : C:\Users\CGauns\AppData\Local\ANDROID\sdk;C:\Users\CGauns\AppData\Local\ANDROID\sdk\build-tools;C:\Users\CGauns\AppData\Local\ANDROID\sdk\tools;C:\Users\CGauns\AppData\Local\ANDROID\sdk\platform-tools;C:\Users\CGauns\AppData\Local\ANDROID\sdk\tools\bin;


    backend : pro