Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ionic state reset causes undefined exception #1646

Closed
jQrgen opened this issue Nov 8, 2016 · 3 comments
Closed

ionic state reset causes undefined exception #1646

jQrgen opened this issue Nov 8, 2016 · 3 comments

Comments

@jQrgen
Copy link

jQrgen commented Nov 8, 2016

Short description of the problem:

ionic state reset causes an undefined exception:

What behavior are you expecting?

More verbose logs or no error.

Stians-iMac:flare Stian$ ionic state reset
Removed platforms and plugins
Attempting to restore your Ionic application from package.json

Restoring Platforms

cordova platform add android
cordova platform add ios

Restore platforms is complete

Restoring Plugins

cordova plugin add [email protected]
Caught exception:
 undefined 

Mind letting us know? https://github.com/driftyco/ionic-cli/issues```

**Post the output of `ionic info` below please**

Stians-iMac:flare Stian$ ionic info
--------------------------------
--------------------------------

Your system information:

Cordova CLI: 6.4.0
Gulp version:  CLI version 3.9.1
Gulp local:   Local version 3.9.1
Ionic Framework Version: 1.3.1
Ionic CLI Version: 2.1.4
Ionic App Lib Version: 2.1.2
ios-deploy version: 1.9.0 
ios-sim version: 5.0.8 
OS: Mac OS X Sierra
Node Version: v4.6.1
Xcode version: Xcode 8.1 Build version 8B62 


--------------------------------
@dually8
Copy link

dually8 commented Nov 8, 2016

Getting the same for ionic 1 app. Below is info and package.json

Your system information:

Cordova CLI: 6.4.0
Gulp version:  CLI version 3.9.1
Gulp local:   Local version 3.9.1
Ionic Framework Version: 1.3.2
Ionic CLI Version: 2.1.4
Ionic App Lib Version: 2.1.2
ios-deploy version: 1.9.0 
ios-sim version: 5.0.10 
OS: Mac OS X El Capitan
Node Version: v6.8.1
Xcode version: Xcode 8.1 Build version 8B62 
{
  "name": "test",
  "version": "1.0.0",
  "description": "test app",
  "dependencies": {
    "gulp": "^3.5.6",
    "gulp-bump": "^2.5.0",
    "gulp-concat": "^2.2.0",
    "gulp-debug": "^2.1.2",
    "gulp-minify-css": "^1.2.4",
    "gulp-rename": "^1.2.0",
    "gulp-replace": "^0.5.4",
    "gulp-sass": "^2.0.4",
    "node-notify": "^1.0.0",
    "run-sequence": "^1.2.2"
  },
  "devDependencies": {
    "angular-mocks": "^1.5.8",
    "bower": "^1.3.3",
    "gulp-concat": "^2.6.0",
    "gulp-sourcemaps": "^1.6.0",
    "gulp-typescript": "^2.13.4",
    "gulp-util": "^3.0.7",
    "jasmine": "^2.5.2",
    "jasmine-core": "^2.5.2",
    "karma": "^1.3.0",
    "karma-chrome-launcher": "^2.0.0",
    "karma-jasmine": "^1.0.2",
    "karma-junit-reporter": "^1.1.0",
    "karma-phantomjs-launcher": "^1.0.2",
    "karma-requirejs": "^1.1.0",
    "requirejs": "^2.3.2",
    "shelljs": "^0.7.0"
  },
  "cordovaPlugins": [
    "cordova-plugin-device",
    "cordova-plugin-console",
    "cordova-plugin-whitelist",
    "cordova-plugin-splashscreen",
    "cordova-plugin-statusbar",
    "ionic-plugin-keyboard"
  ],
  "cordovaPlatforms": [
    "ios",
    "android",
    {
      "platform": "ios",
      "version": "",
      "locator": "ios"
    }
  ]
}

@brunoravanhani
Copy link

I had the same problem in android, but I just updated the android native SDK.

@dually8
Copy link

dually8 commented Nov 8, 2016

Found out this is deprecated/removed. Sweeeeeeeeet. :\ #904 #890

Have to use cordova plugin add [whatever-plugin] --save and cordova prepare now. Why even bother having an ionic cli?

@jQrgen jQrgen closed this as completed Nov 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants