[ERROR] ionic state has been removed as of CLI 3.0

I want to reset my platform and plugins because it is giving
me this error that device not fired within 5000ms . Please reinstall your ionic/native plugins.

I am running this command but I am getting this error

[ERROR] ionic state has been removed as of CLI 3.0

Ionic Info


cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.9.2
    ionic (Ionic CLI) : 3.9.2

global packages:

    Cordova CLI : 7.0.1

local packages:

    @ionic/app-scripts : 2.1.4
    Cordova Platforms  : ios 4.3.1
    Ionic Framework    : ionic-angular 3.6.1

System:

    ios-deploy : 1.9.2
    Node       : v6.11.3
    npm        : 5.4.1
    OS         : macOS High Sierra
    Xcode      : Xcode 8.3.2 Build version 8E2002

vs.

What exactly do you think you have to do?

If you want to regenerate your native projects, just remove the platforms and re-add them again. This will also create new installations of the plugins.

I am stuck into this issue

Ionic Native: deviceready did not fire within 5000ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.

I also tried this

ionic cordova prepare
but this also didn’t help

So I want to reinstall my plugins through a command
manually it will take so much time.

Well, the old command doesn’t exist any more as plugins are handled differently by Cordova since a few versions. You will have to either use the commands I posted above or do it manually. (Or really debug your actual problem)

I removed all the plugins manually and installed them again but still it is giving me error that

Ionic Native: deviceready did not fire within 5000ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.

Create a new topic for that problem please. Maybe someone can help debug this.

(Include your ionic cordova plugin list and ionic info output please)

1 Like